Class ByteBufferStream
java.lang.Object
com._1c.g5.v8.bm.common.serialization.ByteBufferStream
Deprecated.
NIO is block-oriented IO. In case you need stream-oriented IO, use ByteArrayOutputStream.
Implements a bytes stream using ByteBuffers
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Allocate buffer with default size 1kb.ByteBufferStream(int size) Deprecated.Allocate buffer with specified initial size. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated.Clears the stream.voidendBlock()Deprecated.Ends block.byte[]Deprecated.put(byte b) Deprecated.Put byteput(byte[] value) Deprecated.Put all bytes to stream.put(byte[] value, int offset, int len) Deprecated.Put all bytes to stream.put(ByteBuffer value) Deprecated.Put all bytes to stream.putInt(int value) Deprecated.Put intputLong(long value) Deprecated.Put longvoidDeprecated.Starts block.
-
Constructor Details
-
ByteBufferStream
public ByteBufferStream(int size) Deprecated.Allocate buffer with specified initial size. -
ByteBufferStream
public ByteBufferStream()Deprecated.Allocate buffer with default size 1kb.
-
-
Method Details
-
getBuffer
public byte[] getBuffer()Deprecated.- Returns:
- the buffer
-
put
Deprecated.Put byte -
putInt
Deprecated.Put int -
putLong
Deprecated.Put long -
put
Deprecated.Put all bytes to stream. -
put
Deprecated.Put all bytes to stream. -
put
Deprecated.Put all bytes to stream. -
clear
public void clear()Deprecated.Clears the stream. -
startBlock
public void startBlock()Deprecated.Starts block. -
endBlock
public void endBlock()Deprecated.Ends block.
-