Package com.google.protobuf
Class CodedOutputStream.AbstractBufferedEncoder
java.lang.Object
com.google.protobuf.ByteOutput
com.google.protobuf.CodedOutputStream
com.google.protobuf.CodedOutputStream.AbstractBufferedEncoder
- Direct Known Subclasses:
CodedOutputStream.ByteOutputEncoder
,CodedOutputStream.OutputStreamEncoder
- Enclosing class:
CodedOutputStream
Abstract base class for buffered encoders.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.protobuf.CodedOutputStream
CodedOutputStream.OutOfSpaceException
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final byte[]
(package private) final int
(package private) int
(package private) int
Fields inherited from class com.google.protobuf.CodedOutputStream
DEFAULT_BUFFER_SIZE, LITTLE_ENDIAN_32_SIZE, wrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final void
buffer
(byte value) This method does not perform bounds checking on the array.(package private) final void
bufferFixed32NoTag
(int value) This method does not perform bounds checking on the array.(package private) final void
bufferFixed64NoTag
(long value) This method does not perform bounds checking on the array.(package private) final void
bufferInt32NoTag
(int value) This method does not perform bounds checking on the array.(package private) final void
bufferTag
(int fieldNumber, int wireType) This method does not perform bounds checking on the array.(package private) final void
bufferUInt32NoTag
(int value) This method does not perform bounds checking on the array.(package private) final void
bufferUInt64NoTag
(long value) This method does not perform bounds checking on the array.final int
Get the total number of bytes successfully written to this stream.final int
If writing to a flat array, return the space left in the array.Methods inherited from class com.google.protobuf.CodedOutputStream
checkNoSpaceLeft, computeBoolSize, computeBoolSizeNoTag, computeByteArraySize, computeByteArraySizeNoTag, computeByteBufferSize, computeByteBufferSizeNoTag, computeBytesSize, computeBytesSizeNoTag, computeDoubleSize, computeDoubleSizeNoTag, computeEnumSize, computeEnumSizeNoTag, computeFixed32Size, computeFixed32SizeNoTag, computeFixed64Size, computeFixed64SizeNoTag, computeFloatSize, computeFloatSizeNoTag, computeGroupSize, computeGroupSize, computeGroupSizeNoTag, computeGroupSizeNoTag, computeInt32Size, computeInt32SizeNoTag, computeInt64Size, computeInt64SizeNoTag, computeLazyFieldMessageSetExtensionSize, computeLazyFieldSize, computeLazyFieldSizeNoTag, computeLengthDelimitedFieldSize, computeMessageSetExtensionSize, computeMessageSize, computeMessageSize, computeMessageSizeNoTag, 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, writeGroup, writeGroupNoTag, writeGroupNoTag, writeInt32, writeInt32NoTag, writeInt64, writeInt64NoTag, writeLazy, writeLazy, writeMessage, writeMessage, writeMessageNoTag, 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
-
Field Details
-
buffer
final byte[] buffer -
limit
final int limit -
position
int position -
totalBytesWritten
int totalBytesWritten
-
-
Constructor Details
-
AbstractBufferedEncoder
AbstractBufferedEncoder(int bufferSize)
-
-
Method Details
-
spaceLeft
public final int spaceLeft()Description copied from class:CodedOutputStream
If writing to a flat array, return the space left in the array. Otherwise, throwsUnsupportedOperationException
.- Specified by:
spaceLeft
in classCodedOutputStream
-
getTotalBytesWritten
public final int getTotalBytesWritten()Description copied from class:CodedOutputStream
Get the total number of bytes successfully written to this stream. The returned value is not guaranteed to be accurate if exceptions have been found in the middle of writing.- Specified by:
getTotalBytesWritten
in classCodedOutputStream
-
buffer
final void buffer(byte value) This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller. -
bufferTag
final void bufferTag(int fieldNumber, int wireType) This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller. -
bufferInt32NoTag
final void bufferInt32NoTag(int value) This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller. -
bufferUInt32NoTag
final void bufferUInt32NoTag(int value) This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller. -
bufferUInt64NoTag
final void bufferUInt64NoTag(long value) This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller. -
bufferFixed32NoTag
final void bufferFixed32NoTag(int value) This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller. -
bufferFixed64NoTag
final void bufferFixed64NoTag(long value) This method does not perform bounds checking on the array. Checking array bounds is the responsibility of the caller.
-