Convenience constructor.
Convenience constructor. Strictly equivalent to {{new ArrayBufferInputStream(buffer, 0, buffer.byteLength)}
Underlying ArrayBuffer
Length in bytes in buffer
Used to persist pos when mark is called
Used to persist pos when mark is called
Offset in bytes in buffer
Next byte to read in the buffer (after adding offset).
Next byte to read in the buffer (after adding offset).
Use skip to update (protects from overrun and moving backwards).
Skips a given number of bytes.
Skips a given number of bytes. Always skips the maximum number possible
ECMAScript 6 A java.io.InputStream wrapping a JavaScript ArrayBuffer
This class is extremely similar to a ByteArrayInputStream, but uses ArrayBuffers as the underlying representation. Stream implementations may special case on this stream for better performance and access the underlying buffer directly. (They still need to make sure the internal pointers are properly aligned though).
This stream has several public members (n.b. buffer, offset, length and pos) in order to allow JavaScript aware applications to special case on this kind of stream and access the underlying ArrayBuffer directly for efficiency. In this case it is the client's responsibility to synchronize pos, as if the stream were read normally (if the context in which it is used requires this).