Public Member Functions | Private Member Functions | Private Attributes | List of all members
com.google.protobuf.CodedOutputStream.OutputStreamEncoder Class Reference
Inheritance diagram for com.google.protobuf.CodedOutputStream.OutputStreamEncoder:
Inheritance graph
[legend]

Public Member Functions

void flush () throws IOException
 
void flush () throws IOException
 
void write (byte value) throws IOException
 
void write (byte value) throws IOException
 
void write (byte[] value, int offset, int length) throws IOException
 
void write (byte[] value, int offset, int length) throws IOException
 
void write (ByteBuffer value) throws IOException
 
void write (ByteBuffer value) throws IOException
 
void writeBool (final int fieldNumber, final boolean value) throws IOException
 
void writeBool (final int fieldNumber, final boolean value) throws IOException
 
void writeByteArray (final int fieldNumber, final byte[] value) throws IOException
 
void writeByteArray (final int fieldNumber, final byte[] value) throws IOException
 
void writeByteArray (final int fieldNumber, final byte[] value, final int offset, final int length) throws IOException
 
void writeByteArray (final int fieldNumber, final byte[] value, final int offset, final int length) throws IOException
 
void writeByteArrayNoTag (final byte[] value, int offset, int length) throws IOException
 
void writeByteArrayNoTag (final byte[] value, int offset, int length) throws IOException
 
void writeByteBuffer (final int fieldNumber, final ByteBuffer value) throws IOException
 
void writeByteBuffer (final int fieldNumber, final ByteBuffer value) throws IOException
 
void writeBytes (final int fieldNumber, final ByteString value) throws IOException
 
void writeBytes (final int fieldNumber, final ByteString value) throws IOException
 
void writeBytesNoTag (final ByteString value) throws IOException
 
void writeBytesNoTag (final ByteString value) throws IOException
 
void writeFixed32 (final int fieldNumber, final int value) throws IOException
 
void writeFixed32 (final int fieldNumber, final int value) throws IOException
 
void writeFixed32NoTag (final int value) throws IOException
 
void writeFixed32NoTag (final int value) throws IOException
 
void writeFixed64 (final int fieldNumber, final long value) throws IOException
 
void writeFixed64 (final int fieldNumber, final long value) throws IOException
 
void writeFixed64NoTag (final long value) throws IOException
 
void writeFixed64NoTag (final long value) throws IOException
 
void writeInt32 (final int fieldNumber, final int value) throws IOException
 
void writeInt32 (final int fieldNumber, final int value) throws IOException
 
void writeInt32NoTag (int value) throws IOException
 
void writeInt32NoTag (int value) throws IOException
 
void writeLazy (byte[] value, int offset, int length) throws IOException
 
void writeLazy (byte[] value, int offset, int length) throws IOException
 
void writeLazy (ByteBuffer value) throws IOException
 
void writeLazy (ByteBuffer value) throws IOException
 
void writeMessage (final int fieldNumber, final MessageLite value) throws IOException
 
void writeMessage (final int fieldNumber, final MessageLite value) throws IOException
 
void writeMessageNoTag (final MessageLite value) throws IOException
 
void writeMessageNoTag (final MessageLite value) throws IOException
 
void writeMessageSetExtension (final int fieldNumber, final MessageLite value) throws IOException
 
void writeMessageSetExtension (final int fieldNumber, final MessageLite value) throws IOException
 
void writeRawBytes (final ByteBuffer value) throws IOException
 
void writeRawBytes (final ByteBuffer value) throws IOException
 
void writeRawMessageSetExtension (final int fieldNumber, final ByteString value) throws IOException
 
void writeRawMessageSetExtension (final int fieldNumber, final ByteString value) throws IOException
 
void writeString (final int fieldNumber, final String value) throws IOException
 
void writeString (final int fieldNumber, final String value) throws IOException
 
void writeStringNoTag (String value) throws IOException
 
void writeStringNoTag (String value) throws IOException
 
void writeTag (final int fieldNumber, final int wireType) throws IOException
 
void writeTag (final int fieldNumber, final int wireType) throws IOException
 
void writeUInt32 (final int fieldNumber, final int value) throws IOException
 
void writeUInt32 (final int fieldNumber, final int value) throws IOException
 
void writeUInt32NoTag (int value) throws IOException
 
void writeUInt32NoTag (int value) throws IOException
 
void writeUInt64 (final int fieldNumber, final long value) throws IOException
 
void writeUInt64 (final int fieldNumber, final long value) throws IOException
 
void writeUInt64NoTag (long value) throws IOException
 
void writeUInt64NoTag (long value) throws IOException
 
- Public Member Functions inherited from com.google.protobuf.CodedOutputStream.AbstractBufferedEncoder
final int getTotalBytesWritten ()
 
final int getTotalBytesWritten ()
 
final int spaceLeft ()
 
final int spaceLeft ()
 
- Public Member Functions inherited from com.google.protobuf.CodedOutputStream
final void checkNoSpaceLeft ()
 
final void checkNoSpaceLeft ()
 
void useDeterministicSerialization ()
 
void useDeterministicSerialization ()
 
final void writeBoolNoTag (final boolean value) throws IOException
 
final void writeBoolNoTag (final boolean value) throws IOException
 
final void writeByteArrayNoTag (final byte[] value) throws IOException
 
final void writeByteArrayNoTag (final byte[] value) throws IOException
 
final void writeDouble (final int fieldNumber, final double value) throws IOException
 
final void writeDouble (final int fieldNumber, final double value) throws IOException
 
final void writeDoubleNoTag (final double value) throws IOException
 
final void writeDoubleNoTag (final double value) throws IOException
 
final void writeEnum (final int fieldNumber, final int value) throws IOException
 
final void writeEnum (final int fieldNumber, final int value) throws IOException
 
final void writeEnumNoTag (final int value) throws IOException
 
final void writeEnumNoTag (final int value) throws IOException
 
final void writeFloat (final int fieldNumber, final float value) throws IOException
 
final void writeFloat (final int fieldNumber, final float value) throws IOException
 
final void writeFloatNoTag (final float value) throws IOException
 
final void writeFloatNoTag (final float value) throws IOException
 
final void writeGroup (final int fieldNumber, final MessageLite value) throws IOException
 
final void writeGroup (final int fieldNumber, final MessageLite value) throws IOException
 
final void writeGroupNoTag (final MessageLite value) throws IOException
 
final void writeGroupNoTag (final MessageLite value) throws IOException
 
final void writeInt64 (final int fieldNumber, final long value) throws IOException
 
final void writeInt64 (final int fieldNumber, final long value) throws IOException
 
final void writeInt64NoTag (final long value) throws IOException
 
final void writeInt64NoTag (final long value) throws IOException
 
final void writeRawByte (final byte value) throws IOException
 
final void writeRawByte (final byte value) throws IOException
 
final void writeRawByte (final int value) throws IOException
 
final void writeRawByte (final int value) throws IOException
 
final void writeRawBytes (final byte[] value) throws IOException
 
final void writeRawBytes (final byte[] value) throws IOException
 
final void writeRawBytes (final byte[] value, int offset, int length) throws IOException
 
final void writeRawBytes (final byte[] value, int offset, int length) throws IOException
 
final void writeRawBytes (final ByteString value) throws IOException
 
final void writeRawBytes (final ByteString value) throws IOException
 
final void writeRawLittleEndian32 (final int value) throws IOException
 
final void writeRawLittleEndian32 (final int value) throws IOException
 
final void writeRawLittleEndian64 (final long value) throws IOException
 
final void writeRawLittleEndian64 (final long value) throws IOException
 
final void writeRawVarint32 (int value) throws IOException
 
final void writeRawVarint32 (int value) throws IOException
 
final void writeRawVarint64 (long value) throws IOException
 
final void writeRawVarint64 (long value) throws IOException
 
final void writeSFixed32 (final int fieldNumber, final int value) throws IOException
 
final void writeSFixed32 (final int fieldNumber, final int value) throws IOException
 
final void writeSFixed32NoTag (final int value) throws IOException
 
final void writeSFixed32NoTag (final int value) throws IOException
 
final void writeSFixed64 (final int fieldNumber, final long value) throws IOException
 
final void writeSFixed64 (final int fieldNumber, final long value) throws IOException
 
final void writeSFixed64NoTag (final long value) throws IOException
 
final void writeSFixed64NoTag (final long value) throws IOException
 
final void writeSInt32 (final int fieldNumber, final int value) throws IOException
 
final void writeSInt32 (final int fieldNumber, final int value) throws IOException
 
final void writeSInt32NoTag (final int value) throws IOException
 
final void writeSInt32NoTag (final int value) throws IOException
 
final void writeSInt64 (final int fieldNumber, final long value) throws IOException
 
final void writeSInt64 (final int fieldNumber, final long value) throws IOException
 
final void writeSInt64NoTag (final long value) throws IOException
 
final void writeSInt64NoTag (final long value) throws IOException
 

Private Member Functions

void doFlush () throws IOException
 
void doFlush () throws IOException
 
void flushIfNotAvailable (int requiredSize) throws IOException
 
void flushIfNotAvailable (int requiredSize) throws IOException
 

Private Attributes

final OutputStream out
 

Additional Inherited Members

- Static Public Member Functions inherited from com.google.protobuf.CodedOutputStream
static int computeBoolSize (final int fieldNumber, final boolean value)
 
static int computeBoolSize (final int fieldNumber, final boolean value)
 
static int computeBoolSizeNoTag (@SuppressWarnings("unused") final boolean unused)
 
static int computeBoolSizeNoTag (@SuppressWarnings("unused") final boolean unused)
 
static int computeByteArraySize (final int fieldNumber, final byte[] value)
 
static int computeByteArraySize (final int fieldNumber, final byte[] value)
 
static int computeByteArraySizeNoTag (final byte[] value)
 
static int computeByteArraySizeNoTag (final byte[] value)
 
static int computeByteBufferSize (final int fieldNumber, final ByteBuffer value)
 
static int computeByteBufferSize (final int fieldNumber, final ByteBuffer value)
 
static int computeByteBufferSizeNoTag (final ByteBuffer value)
 
static int computeByteBufferSizeNoTag (final ByteBuffer value)
 
static int computeBytesSize (final int fieldNumber, final ByteString value)
 
static int computeBytesSize (final int fieldNumber, final ByteString value)
 
static int computeBytesSizeNoTag (final ByteString value)
 
static int computeBytesSizeNoTag (final ByteString value)
 
static int computeDoubleSize (final int fieldNumber, final double value)
 
static int computeDoubleSize (final int fieldNumber, final double value)
 
static int computeDoubleSizeNoTag (@SuppressWarnings("unused") final double unused)
 
static int computeDoubleSizeNoTag (@SuppressWarnings("unused") final double unused)
 
static int computeEnumSize (final int fieldNumber, final int value)
 
static int computeEnumSize (final int fieldNumber, final int value)
 
static int computeEnumSizeNoTag (final int value)
 
static int computeEnumSizeNoTag (final int value)
 
static int computeFixed32Size (final int fieldNumber, final int value)
 
static int computeFixed32Size (final int fieldNumber, final int value)
 
static int computeFixed32SizeNoTag (@SuppressWarnings("unused") final int unused)
 
static int computeFixed32SizeNoTag (@SuppressWarnings("unused") final int unused)
 
static int computeFixed64Size (final int fieldNumber, final long value)
 
static int computeFixed64Size (final int fieldNumber, final long value)
 
static int computeFixed64SizeNoTag (@SuppressWarnings("unused") final long unused)
 
static int computeFixed64SizeNoTag (@SuppressWarnings("unused") final long unused)
 
static int computeFloatSize (final int fieldNumber, final float value)
 
static int computeFloatSize (final int fieldNumber, final float value)
 
static int computeFloatSizeNoTag (@SuppressWarnings("unused") final float unused)
 
static int computeFloatSizeNoTag (@SuppressWarnings("unused") final float unused)
 
static int computeGroupSize (final int fieldNumber, final MessageLite value)
 
static int computeGroupSize (final int fieldNumber, final MessageLite value)
 
static int computeGroupSizeNoTag (final MessageLite value)
 
static int computeGroupSizeNoTag (final MessageLite value)
 
static int computeInt32Size (final int fieldNumber, final int value)
 
static int computeInt32Size (final int fieldNumber, final int value)
 
static int computeInt32SizeNoTag (final int value)
 
static int computeInt32SizeNoTag (final int value)
 
static int computeInt64Size (final int fieldNumber, final long value)
 
static int computeInt64Size (final int fieldNumber, final long value)
 
static int computeInt64SizeNoTag (final long value)
 
static int computeInt64SizeNoTag (final long value)
 
static int computeLazyFieldMessageSetExtensionSize (final int fieldNumber, final LazyFieldLite value)
 
static int computeLazyFieldMessageSetExtensionSize (final int fieldNumber, final LazyFieldLite value)
 
static int computeLazyFieldSize (final int fieldNumber, final LazyFieldLite value)
 
static int computeLazyFieldSize (final int fieldNumber, final LazyFieldLite value)
 
static int computeLazyFieldSizeNoTag (final LazyFieldLite value)
 
static int computeLazyFieldSizeNoTag (final LazyFieldLite value)
 
static int computeMessageSetExtensionSize (final int fieldNumber, final MessageLite value)
 
static int computeMessageSetExtensionSize (final int fieldNumber, final MessageLite value)
 
static int computeMessageSize (final int fieldNumber, final MessageLite value)
 
static int computeMessageSize (final int fieldNumber, final MessageLite value)
 
static int computeMessageSizeNoTag (final MessageLite value)
 
static int computeMessageSizeNoTag (final MessageLite value)
 
static int computeRawMessageSetExtensionSize (final int fieldNumber, final ByteString value)
 
static int computeRawMessageSetExtensionSize (final int fieldNumber, final ByteString value)
 
static int computeRawVarint32Size (final int value)
 
static int computeRawVarint32Size (final int value)
 
static int computeRawVarint64Size (long value)
 
static int computeRawVarint64Size (long value)
 
static int computeSFixed32Size (final int fieldNumber, final int value)
 
static int computeSFixed32Size (final int fieldNumber, final int value)
 
static int computeSFixed32SizeNoTag (@SuppressWarnings("unused") final int unused)
 
static int computeSFixed32SizeNoTag (@SuppressWarnings("unused") final int unused)
 
static int computeSFixed64Size (final int fieldNumber, final long value)
 
static int computeSFixed64Size (final int fieldNumber, final long value)
 
static int computeSFixed64SizeNoTag (@SuppressWarnings("unused") final long unused)
 
static int computeSFixed64SizeNoTag (@SuppressWarnings("unused") final long unused)
 
static int computeSInt32Size (final int fieldNumber, final int value)
 
static int computeSInt32Size (final int fieldNumber, final int value)
 
static int computeSInt32SizeNoTag (final int value)
 
static int computeSInt32SizeNoTag (final int value)
 
static int computeSInt64Size (final int fieldNumber, final long value)
 
static int computeSInt64Size (final int fieldNumber, final long value)
 
static int computeSInt64SizeNoTag (final long value)
 
static int computeSInt64SizeNoTag (final long value)
 
static int computeStringSize (final int fieldNumber, final String value)
 
static int computeStringSize (final int fieldNumber, final String value)
 
static int computeStringSizeNoTag (final String value)
 
static int computeStringSizeNoTag (final String value)
 
static int computeTagSize (final int fieldNumber)
 
static int computeTagSize (final int fieldNumber)
 
static int computeUInt32Size (final int fieldNumber, final int value)
 
static int computeUInt32Size (final int fieldNumber, final int value)
 
static int computeUInt32SizeNoTag (final int value)
 
static int computeUInt32SizeNoTag (final int value)
 
static int computeUInt64Size (final int fieldNumber, final long value)
 
static int computeUInt64Size (final int fieldNumber, final long value)
 
static int computeUInt64SizeNoTag (long value)
 
static int computeUInt64SizeNoTag (long value)
 
static int encodeZigZag32 (final int n)
 
static int encodeZigZag32 (final int n)
 
static long encodeZigZag64 (final long n)
 
static long encodeZigZag64 (final long n)
 
static CodedOutputStream newInstance (ByteBuffer buffer)
 
static CodedOutputStream newInstance (ByteBuffer buffer)
 
static CodedOutputStream newInstance (ByteBuffer byteBuffer, @SuppressWarnings("unused") int unused)
 
static CodedOutputStream newInstance (ByteBuffer byteBuffer, @SuppressWarnings("unused") int unused)
 
static CodedOutputStream newInstance (final byte[] flatArray)
 
static CodedOutputStream newInstance (final byte[] flatArray)
 
static CodedOutputStream newInstance (final byte[] flatArray, final int offset, final int length)
 
static CodedOutputStream newInstance (final byte[] flatArray, final int offset, final int length)
 
static CodedOutputStream newInstance (final OutputStream output)
 
static CodedOutputStream newInstance (final OutputStream output)
 
static CodedOutputStream newInstance (final OutputStream output, final int bufferSize)
 
static CodedOutputStream newInstance (final OutputStream output, final int bufferSize)
 
- Static Public Attributes inherited from com.google.protobuf.CodedOutputStream
static final int DEFAULT_BUFFER_SIZE = 4096
 
static final int LITTLE_ENDIAN_32_SIZE = FIXED32_SIZE
 

Detailed Description

An CodedOutputStream that decorates an OutputStream. It performs internal buffering to optimize writes to the OutputStream.

Definition at line 2708 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

Member Function Documentation

◆ doFlush() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.doFlush ( ) throws IOException
inlineprivate

◆ doFlush() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.doFlush ( ) throws IOException
inlineprivate

◆ flush() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.flush ( ) throws IOException
inline

Flushes the stream and forces any buffered bytes to be written. This does not flush the underlying OutputStream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2971 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ flush() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.flush ( ) throws IOException
inline

Flushes the stream and forces any buffered bytes to be written. This does not flush the underlying OutputStream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2971 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ flushIfNotAvailable() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.flushIfNotAvailable ( int  requiredSize) throws IOException
inlineprivate

◆ flushIfNotAvailable() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.flushIfNotAvailable ( int  requiredSize) throws IOException
inlineprivate

◆ write() [1/6]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.write ( byte  value) throws IOException
inline

Writes a single byte.

Parameters
valuethe byte to be written
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2865 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ write() [2/6]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.write ( byte  value) throws IOException
inline

Writes a single byte.

Parameters
valuethe byte to be written
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2865 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ write() [3/6]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.write ( byte[]  value,
int  offset,
int  length 
) throws IOException
inline

Writes a sequence of bytes. The ByteOutput must copy

if it will not be processed prior to the return of this method call, since

may be reused/altered by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written
offsetthe offset of the start of the writable range
lengththe number of bytes to write starting from
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2979 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ write() [4/6]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.write ( byte[]  value,
int  offset,
int  length 
) throws IOException
inline

Writes a sequence of bytes. The ByteOutput must copy

if it will not be processed prior to the return of this method call, since

may be reused/altered by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written
offsetthe offset of the start of the writable range
lengththe number of bytes to write starting from
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2979 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ write() [5/6]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.write ( ByteBuffer  value) throws IOException
inline

Writes a sequence of bytes. The ByteOutput must copy

if it will not be processed prior to the return of this method call, since

may be reused/altered by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written. Upon returning from this call, the
position
of this buffer will be set to the
limit
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 3017 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ write() [6/6]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.write ( ByteBuffer  value) throws IOException
inline

Writes a sequence of bytes. The ByteOutput must copy

if it will not be processed prior to the return of this method call, since

may be reused/altered by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written. Upon returning from this call, the
position
of this buffer will be set to the
limit
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 3017 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeBool() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeBool ( final int  fieldNumber,
final boolean  value 
) throws IOException
inline

Write a

bool

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2760 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeBool() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeBool ( final int  fieldNumber,
final boolean  value 
) throws IOException
inline

Write a

bool

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2760 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteArray() [1/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteArray ( final int  fieldNumber,
final byte[]  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2779 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteArray() [2/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteArray ( final int  fieldNumber,
final byte[]  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2779 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteArray() [3/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteArray ( final int  fieldNumber,
final byte[]  value,
final int  offset,
final int  length 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2784 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteArray() [4/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteArray ( final int  fieldNumber,
final byte[]  value,
final int  offset,
final int  length 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2784 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteArrayNoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteArrayNoTag ( final byte[]  value,
int  offset,
int  length 
) throws IOException
inline

Write a

field to the stream. Visible for testing.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2805 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteArrayNoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteArrayNoTag ( final byte[]  value,
int  offset,
int  length 
) throws IOException
inline

Write a

field to the stream. Visible for testing.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2805 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteBuffer() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteBuffer ( final int  fieldNumber,
final ByteBuffer  value 
) throws IOException
inline

Write a

field, including tag, to the stream. This method will write all content of the ByteBuffer regardless of the current position and limit (i.e., the number of bytes to be written is value.capacity(), not value.remaining()). Furthermore, this method doesn't alter the state of the passed-in ByteBuffer. Its position, limit, mark, etc. will remain unchanged. If you only want to write the remaining bytes of a ByteBuffer, you can call

writeByteBuffer(fieldNumber, byteBuffer.slice())

.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2792 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeByteBuffer() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteBuffer ( final int  fieldNumber,
final ByteBuffer  value 
) throws IOException
inline

Write a

field, including tag, to the stream. This method will write all content of the ByteBuffer regardless of the current position and limit (i.e., the number of bytes to be written is value.capacity(), not value.remaining()). Furthermore, this method doesn't alter the state of the passed-in ByteBuffer. Its position, limit, mark, etc. will remain unchanged. If you only want to write the remaining bytes of a ByteBuffer, you can call

writeByteBuffer(fieldNumber, byteBuffer.slice())

.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2792 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeBytes() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeBytes ( final int  fieldNumber,
final ByteString  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2773 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeBytes() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeBytes ( final int  fieldNumber,
final ByteString  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2773 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeBytesNoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeBytesNoTag ( final ByteString  value) throws IOException
inline

Write a

field to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2799 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeBytesNoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeBytesNoTag ( final ByteString  value) throws IOException
inline

◆ writeFixed32() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed32 ( final int  fieldNumber,
final int  value 
) throws IOException
inline

Write a

fixed32

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2739 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeFixed32() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed32 ( final int  fieldNumber,
final int  value 
) throws IOException
inline

Write a

fixed32

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2739 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeFixed32NoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed32NoTag ( final int  value) throws IOException
inline

◆ writeFixed32NoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed32NoTag ( final int  value) throws IOException
inline

Write a

fixed32

field to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2890 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeFixed64() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed64 ( final int  fieldNumber,
final long  value 
) throws IOException
inline

Write a

fixed64

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2753 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeFixed64() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed64 ( final int  fieldNumber,
final long  value 
) throws IOException
inline

Write a

fixed64

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2753 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeFixed64NoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed64NoTag ( final long  value) throws IOException
inline

◆ writeFixed64NoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeFixed64NoTag ( final long  value) throws IOException
inline

Write a

fixed64

field to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2902 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeInt32() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeInt32 ( final int  fieldNumber,
final int  value 
) throws IOException
inline

Write an

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2725 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeInt32() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeInt32 ( final int  fieldNumber,
final int  value 
) throws IOException
inline

Write an

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2725 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeInt32NoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeInt32NoTag ( int  value) throws IOException
inline

◆ writeInt32NoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeInt32NoTag ( int  value) throws IOException
inline

Write an

field to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2874 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeLazy() [1/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeLazy ( byte[]  value,
int  offset,
int  length 
) throws IOException
inline

Writes a sequence of bytes. The ByteOutput is free to retain a reference to the value beyond the scope of this method call (e.g. write later) since it is considered immutable and is guaranteed not to change by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written
offsetthe offset of the start of the writable range
lengththe number of bytes to write starting from
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 3012 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeLazy() [2/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeLazy ( byte[]  value,
int  offset,
int  length 
) throws IOException
inline

Writes a sequence of bytes. The ByteOutput is free to retain a reference to the value beyond the scope of this method call (e.g. write later) since it is considered immutable and is guaranteed not to change by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written
offsetthe offset of the start of the writable range
lengththe number of bytes to write starting from
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 3012 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeLazy() [3/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeLazy ( ByteBuffer  value) throws IOException
inline

Writes a sequence of bytes. The ByteOutput is free to retain a reference to the value beyond the scope of this method call (e.g. write later) since it is considered immutable and is guaranteed not to change by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written. Upon returning from this call, the
position
of this buffer will be set to the
limit
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 3051 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeLazy() [4/4]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeLazy ( ByteBuffer  value) throws IOException
inline

Writes a sequence of bytes. The ByteOutput is free to retain a reference to the value beyond the scope of this method call (e.g. write later) since it is considered immutable and is guaranteed not to change by the caller.

NOTE: This method MUST NOT modify the

. Doing so is a programming error and will lead to data corruption which will be difficult to debug.

Parameters
valuethe bytes to be written. Upon returning from this call, the
position
of this buffer will be set to the
limit
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 3051 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeMessage() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeMessage ( final int  fieldNumber,
final MessageLite  value 
) throws IOException
inline

Write an embedded message field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2822 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeMessage() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeMessage ( final int  fieldNumber,
final MessageLite  value 
) throws IOException
inline

Write an embedded message field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2822 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeMessageNoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeMessageNoTag ( final MessageLite  value) throws IOException
inline

Write an embedded message field to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2853 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeMessageNoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeMessageNoTag ( final MessageLite  value) throws IOException
inline

Write an embedded message field to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2853 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeMessageSetExtension() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeMessageSetExtension ( final int  fieldNumber,
final MessageLite  value 
) throws IOException
inline

Write a MessageSet extension field to the stream. For historical reasons, the wire format differs from normal fields.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2835 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeMessageSetExtension() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeMessageSetExtension ( final int  fieldNumber,
final MessageLite  value 
) throws IOException
inline

Write a MessageSet extension field to the stream. For historical reasons, the wire format differs from normal fields.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2835 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeRawBytes() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeRawBytes ( final ByteBuffer  value) throws IOException
inline

Write a ByteBuffer. This method will write all content of the ByteBuffer regardless of the current position and limit (i.e., the number of bytes to be written is value.capacity(), not value.remaining()). Furthermore, this method doesn't alter the state of the passed-in ByteBuffer. Its position, limit, mark, etc. will remain unchanged. If you only want to write the remaining bytes of a ByteBuffer, you can call

writeRawBytes(byteBuffer.slice())

.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2811 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeRawBytes() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeRawBytes ( final ByteBuffer  value) throws IOException
inline

Write a ByteBuffer. This method will write all content of the ByteBuffer regardless of the current position and limit (i.e., the number of bytes to be written is value.capacity(), not value.remaining()). Furthermore, this method doesn't alter the state of the passed-in ByteBuffer. Its position, limit, mark, etc. will remain unchanged. If you only want to write the remaining bytes of a ByteBuffer, you can call

writeRawBytes(byteBuffer.slice())

.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2811 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeRawMessageSetExtension() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeRawMessageSetExtension ( final int  fieldNumber,
final ByteString  value 
) throws IOException
inline

Write an unparsed MessageSet extension field to the stream. For historical reasons, the wire format differs from normal fields.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2844 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeRawMessageSetExtension() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeRawMessageSetExtension ( final int  fieldNumber,
final ByteString  value 
) throws IOException
inline

Write an unparsed MessageSet extension field to the stream. For historical reasons, the wire format differs from normal fields.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2844 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeString() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeString ( final int  fieldNumber,
final String  value 
) throws IOException
inline

Write a

string

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2767 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeString() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeString ( final int  fieldNumber,
final String  value 
) throws IOException
inline

Write a

string

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2767 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeStringNoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeStringNoTag ( String  value) throws IOException
inline

Write a

string

field to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2908 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeStringNoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeStringNoTag ( String  value) throws IOException
inline

◆ writeTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeTag ( final int  fieldNumber,
final int  wireType 
) throws IOException
inline

◆ writeTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeTag ( final int  fieldNumber,
final int  wireType 
) throws IOException
inline

◆ writeUInt32() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt32 ( final int  fieldNumber,
final int  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2732 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeUInt32() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt32 ( final int  fieldNumber,
final int  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2732 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeUInt32NoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt32NoTag ( int  value) throws IOException
inline

◆ writeUInt32NoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt32NoTag ( int  value) throws IOException
inline

◆ writeUInt64() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt64 ( final int  fieldNumber,
final long  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2746 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeUInt64() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt64 ( final int  fieldNumber,
final long  value 
) throws IOException
inline

Write a

field, including tag, to the stream.

Reimplemented from com.google.protobuf.CodedOutputStream.

Definition at line 2746 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java.

◆ writeUInt64NoTag() [1/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt64NoTag ( long  value) throws IOException
inline

◆ writeUInt64NoTag() [2/2]

void com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeUInt64NoTag ( long  value) throws IOException
inline

Member Data Documentation

◆ out

final OutputStream com.google.protobuf.CodedOutputStream.OutputStreamEncoder.out
private

The documentation for this class was generated from the following file:
google::protobuf::uint32
uint32_t uint32
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:155
google::protobuf::int32
int32_t int32
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:150
google::protobuf::uint64
uint64_t uint64
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:156
com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeRawBytes
void writeRawBytes(final ByteBuffer value)
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:2811
value
const char * value
Definition: hpack_parser_table.cc:165
com.google.protobuf.CodedOutputStream.OutputStreamEncoder.writeByteBuffer
void writeByteBuffer(final int fieldNumber, final ByteBuffer value)
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java:2792
bytes
uint8 bytes[10]
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc:153
offset
voidpf uLong offset
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:142


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:03