An optimized InputStream that reads data from a byte array and optionally fills the byte array from another InputStream as needed. Utility methods are provided for efficiently writing primitive types, arrays of primitive types and strings. It uses
@link{java.misc.Unsafe } to achieve a very good performance.
Important notes:
Bulk operations, e.g. on arrays of primitive types, are always using native byte order.
Fixed-size int, long, short, float and double elements are always read using native byte order.
Best performance is achieved if no variable length encoding for integers is used.
Serialized representation used as input for this class should always be produced using @link{UnsafeOutput}
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.