private abstract static class CodedOutputStream.AbstractBufferedEncoder extends CodedOutputStream
CodedOutputStream.OutOfSpaceException
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
buffer |
(package private) int |
limit |
(package private) int |
position |
(package private) int |
totalBytesWritten |
DEFAULT_BUFFER_SIZE, LITTLE_ENDIAN_32_SIZE
Constructor and Description |
---|
AbstractBufferedEncoder(int bufferSize) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
buffer(byte value)
This method does not perform bounds checking on the array.
|
(package private) void |
bufferFixed32NoTag(int value)
This method does not perform bounds checking on the array.
|
(package private) void |
bufferFixed64NoTag(long value)
This method does not perform bounds checking on the array.
|
(package private) void |
bufferInt32NoTag(int value)
This method does not perform bounds checking on the array.
|
(package private) void |
bufferTag(int fieldNumber,
int wireType)
This method does not perform bounds checking on the array.
|
(package private) void |
bufferUInt32NoTag(int value)
This method does not perform bounds checking on the array.
|
(package private) void |
bufferUInt64NoTag(long value)
This method does not perform bounds checking on the array.
|
int |
getTotalBytesWritten()
Get the total number of bytes successfully written to this stream.
|
int |
spaceLeft()
If writing to a flat array, return the space left in the array.
|
checkNoSpaceLeft, computeBoolSize, computeBoolSizeNoTag, computeByteArraySize, computeByteArraySizeNoTag, computeByteBufferSize, computeByteBufferSizeNoTag, computeBytesSize, computeBytesSizeNoTag, computeDoubleSize, computeDoubleSizeNoTag, computeEnumSize, computeEnumSizeNoTag, computeFixed32Size, computeFixed32SizeNoTag, computeFixed64Size, computeFixed64SizeNoTag, computeFloatSize, computeFloatSizeNoTag, computeGroupSize, computeGroupSizeNoTag, computeInt32Size, computeInt32SizeNoTag, computeInt64Size, computeInt64SizeNoTag, computeLazyFieldMessageSetExtensionSize, computeLazyFieldSize, computeLazyFieldSizeNoTag, computeLengthDelimitedFieldSize, computeMessageSetExtensionSize, computeMessageSize, computeMessageSizeNoTag, computePreferredBufferSize, computeRawMessageSetExtensionSize, computeRawVarint32Size, computeRawVarint64Size, computeSFixed32Size, computeSFixed32SizeNoTag, computeSFixed64Size, computeSFixed64SizeNoTag, computeSInt32Size, computeSInt32SizeNoTag, computeSInt64Size, computeSInt64SizeNoTag, computeStringSize, computeStringSizeNoTag, computeTagSize, computeUInt32Size, computeUInt32SizeNoTag, computeUInt64Size, computeUInt64SizeNoTag, encodeZigZag32, encodeZigZag64, flush, inefficientWriteStringNoTag, isSerializationDeterministic, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newSafeInstance, newUnsafeInstance, useDeterministicSerialization, write, write, write, writeBool, writeBoolNoTag, writeByteArray, writeByteArray, writeByteArrayNoTag, writeByteArrayNoTag, writeByteBuffer, writeBytes, writeBytesNoTag, writeDouble, writeDoubleNoTag, writeEnum, writeEnumNoTag, writeFixed32, writeFixed32NoTag, writeFixed64, writeFixed64NoTag, writeFloat, writeFloatNoTag, writeGroup, writeGroupNoTag, writeInt32, writeInt32NoTag, writeInt64, writeInt64NoTag, writeLazy, writeLazy, writeMessage, writeMessageNoTag, writeMessageSetExtension, writeRawByte, writeRawByte, writeRawBytes, writeRawBytes, writeRawBytes, writeRawBytes, writeRawLittleEndian32, writeRawLittleEndian64, writeRawMessageSetExtension, writeRawVarint32, writeRawVarint64, writeSFixed32, writeSFixed32NoTag, writeSFixed64, writeSFixed64NoTag, writeSInt32, writeSInt32NoTag, writeSInt64, writeSInt64NoTag, writeString, writeStringNoTag, writeTag, writeUInt32, writeUInt32NoTag, writeUInt64, writeUInt64NoTag
final byte[] buffer
final int limit
int position
int totalBytesWritten
public final int spaceLeft()
CodedOutputStream
UnsupportedOperationException
.spaceLeft
in class CodedOutputStream
public final int getTotalBytesWritten()
CodedOutputStream
getTotalBytesWritten
in class CodedOutputStream
final void buffer(byte value)
final void bufferTag(int fieldNumber, int wireType)
final void bufferInt32NoTag(int value)
final void bufferUInt32NoTag(int value)
final void bufferUInt64NoTag(long value)
final void bufferFixed32NoTag(int value)
final void bufferFixed64NoTag(long value)