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

Public Member Functions

int getTotalBytesWritten ()
 
void write (byte value)
 
void write (byte[] value, int offset, int length)
 
void write (ByteBuffer value)
 
void writeBool (int fieldNumber, boolean value) throws IOException
 
void writeBytes (int fieldNumber, ByteString value) throws IOException
 
void writeEndGroup (int fieldNumber)
 
void writeFixed32 (int fieldNumber, int value) throws IOException
 
void writeFixed64 (int fieldNumber, long value) throws IOException
 
void writeGroup (int fieldNumber, Object value) throws IOException
 
void writeGroup (int fieldNumber, Object value, Schema schema) throws IOException
 
void writeInt32 (int fieldNumber, int value) throws IOException
 
void writeLazy (byte[] value, int offset, int length)
 
void writeLazy (ByteBuffer value)
 
void writeMessage (int fieldNumber, Object value) throws IOException
 
void writeMessage (int fieldNumber, Object value, Schema schema) throws IOException
 
void writeSInt32 (int fieldNumber, int value) throws IOException
 
void writeSInt64 (int fieldNumber, long value) throws IOException
 
void writeStartGroup (int fieldNumber)
 
void writeString (int fieldNumber, String value) throws IOException
 
void writeUInt32 (int fieldNumber, int value) throws IOException
 
void writeUInt64 (int fieldNumber, long value) throws IOException
 

Private Member Functions

void nextBuffer ()
 
void nextBuffer (AllocatedBuffer allocatedBuffer)
 
void nextBuffer (int capacity)
 
void writeVarint32FiveBytes (int value)
 
void writeVarint32FourBytes (int value)
 
void writeVarint32OneByte (int value)
 
void writeVarint32ThreeBytes (int value)
 
void writeVarint32TwoBytes (int value)
 
void writeVarint64EightBytes (long value)
 
void writeVarint64FiveBytes (long value)
 
void writeVarint64FourBytes (long value)
 
void writeVarint64NineBytes (long value)
 
void writeVarint64OneByte (long value)
 
void writeVarint64SevenBytes (long value)
 
void writeVarint64SixBytes (long value)
 
void writeVarint64TenBytes (long value)
 
void writeVarint64ThreeBytes (long value)
 
void writeVarint64TwoBytes (long value)
 

Private Attributes

AllocatedBuffer allocatedBuffer
 
byte[] buffer
 
int limit
 
int limitMinusOne
 
int offset
 
int offsetMinusOne
 
int pos
 

Detailed Description

Writer that uses safe operations on target array.

Definition at line 918 of file BinaryWriter.java.

Member Function Documentation

◆ getTotalBytesWritten()

int com.google.protobuf.BinaryWriter.SafeHeapWriter.getTotalBytesWritten ( )
inline

Definition at line 971 of file BinaryWriter.java.

◆ nextBuffer() [1/3]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.nextBuffer ( )
inlineprivate

Definition at line 943 of file BinaryWriter.java.

◆ nextBuffer() [2/3]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.nextBuffer ( AllocatedBuffer  allocatedBuffer)
inlineprivate

Definition at line 951 of file BinaryWriter.java.

◆ nextBuffer() [3/3]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.nextBuffer ( int  capacity)
inlineprivate

Definition at line 947 of file BinaryWriter.java.

◆ write() [1/3]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.write ( byte  value)
inline

Writes a single byte.

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

Reimplemented from com.google.protobuf.ByteOutput.

Definition at line 1377 of file BinaryWriter.java.

◆ write() [2/3]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.write ( byte[]  value,
int  offset,
int  length 
)
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.ByteOutput.

Definition at line 1382 of file BinaryWriter.java.

◆ write() [3/3]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.write ( ByteBuffer  value)
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 of this buffer will be set to the
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.ByteOutput.

Definition at line 1410 of file BinaryWriter.java.

◆ writeBool()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeBool ( int  fieldNumber,
boolean  value 
) throws IOException
inline

Definition at line 1033 of file BinaryWriter.java.

◆ writeBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeBytes ( int  fieldNumber,
ByteString  value 
) throws IOException
inline

Definition at line 1050 of file BinaryWriter.java.

◆ writeEndGroup()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeEndGroup ( int  fieldNumber)
inline

Definition at line 1103 of file BinaryWriter.java.

◆ writeFixed32()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeFixed32 ( int  fieldNumber,
int  value 
) throws IOException
inline

Definition at line 1005 of file BinaryWriter.java.

◆ writeFixed64()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeFixed64 ( int  fieldNumber,
long  value 
) throws IOException
inline

Definition at line 1026 of file BinaryWriter.java.

◆ writeGroup() [1/2]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeGroup ( int  fieldNumber,
Object  value 
) throws IOException
inline

Definition at line 1084 of file BinaryWriter.java.

◆ writeGroup() [2/2]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeGroup ( int  fieldNumber,
Object  value,
Schema  schema 
) throws IOException
inline

Definition at line 1091 of file BinaryWriter.java.

◆ writeInt32()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeInt32 ( int  fieldNumber,
int  value 
) throws IOException
inline

Definition at line 991 of file BinaryWriter.java.

◆ writeLazy() [1/2]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeLazy ( byte[]  value,
int  offset,
int  length 
)
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.ByteOutput.

Definition at line 1392 of file BinaryWriter.java.

◆ writeLazy() [2/2]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeLazy ( ByteBuffer  value)
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 of this buffer will be set to the
Exceptions
IOExceptionthrown if an error occurred while writing

Reimplemented from com.google.protobuf.ByteOutput.

Definition at line 1421 of file BinaryWriter.java.

◆ writeMessage() [1/2]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeMessage ( int  fieldNumber,
Object  value 
) throws IOException
inline

Definition at line 1064 of file BinaryWriter.java.

◆ writeMessage() [2/2]

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeMessage ( int  fieldNumber,
Object  value,
Schema  schema 
) throws IOException
inline

Definition at line 1074 of file BinaryWriter.java.

◆ writeSInt32()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeSInt32 ( int  fieldNumber,
int  value 
) throws IOException
inline

Definition at line 998 of file BinaryWriter.java.

◆ writeSInt64()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeSInt64 ( int  fieldNumber,
long  value 
) throws IOException
inline

Definition at line 1019 of file BinaryWriter.java.

◆ writeStartGroup()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeStartGroup ( int  fieldNumber)
inline

Definition at line 1098 of file BinaryWriter.java.

◆ writeString()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeString ( int  fieldNumber,
String  value 
) throws IOException
inline

Definition at line 1040 of file BinaryWriter.java.

◆ writeUInt32()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeUInt32 ( int  fieldNumber,
int  value 
) throws IOException
inline

Definition at line 984 of file BinaryWriter.java.

◆ writeUInt64()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeUInt64 ( int  fieldNumber,
long  value 
) throws IOException
inline

Definition at line 1012 of file BinaryWriter.java.

◆ writeVarint32FiveBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint32FiveBytes ( int  value)
inlineprivate

Definition at line 1173 of file BinaryWriter.java.

◆ writeVarint32FourBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint32FourBytes ( int  value)
inlineprivate

Definition at line 1166 of file BinaryWriter.java.

◆ writeVarint32OneByte()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint32OneByte ( int  value)
inlineprivate

Definition at line 1151 of file BinaryWriter.java.

◆ writeVarint32ThreeBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint32ThreeBytes ( int  value)
inlineprivate

Definition at line 1160 of file BinaryWriter.java.

◆ writeVarint32TwoBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint32TwoBytes ( int  value)
inlineprivate

Definition at line 1155 of file BinaryWriter.java.

◆ writeVarint64EightBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64EightBytes ( long  value)
inlineprivate

Definition at line 1266 of file BinaryWriter.java.

◆ writeVarint64FiveBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64FiveBytes ( long  value)
inlineprivate

Definition at line 1239 of file BinaryWriter.java.

◆ writeVarint64FourBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64FourBytes ( long  value)
inlineprivate

Definition at line 1232 of file BinaryWriter.java.

◆ writeVarint64NineBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64NineBytes ( long  value)
inlineprivate

Definition at line 1277 of file BinaryWriter.java.

◆ writeVarint64OneByte()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64OneByte ( long  value)
inlineprivate

Definition at line 1217 of file BinaryWriter.java.

◆ writeVarint64SevenBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64SevenBytes ( long  value)
inlineprivate

Definition at line 1256 of file BinaryWriter.java.

◆ writeVarint64SixBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64SixBytes ( long  value)
inlineprivate

Definition at line 1247 of file BinaryWriter.java.

◆ writeVarint64TenBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64TenBytes ( long  value)
inlineprivate

Definition at line 1289 of file BinaryWriter.java.

◆ writeVarint64ThreeBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64ThreeBytes ( long  value)
inlineprivate

Definition at line 1226 of file BinaryWriter.java.

◆ writeVarint64TwoBytes()

void com.google.protobuf.BinaryWriter.SafeHeapWriter.writeVarint64TwoBytes ( long  value)
inlineprivate

Definition at line 1221 of file BinaryWriter.java.

Member Data Documentation

◆ allocatedBuffer

AllocatedBuffer com.google.protobuf.BinaryWriter.SafeHeapWriter.allocatedBuffer
private

Definition at line 919 of file BinaryWriter.java.

◆ buffer

byte [] com.google.protobuf.BinaryWriter.SafeHeapWriter.buffer
private

Definition at line 920 of file BinaryWriter.java.

◆ limit

int com.google.protobuf.BinaryWriter.SafeHeapWriter.limit
private

Definition at line 922 of file BinaryWriter.java.

◆ limitMinusOne

int com.google.protobuf.BinaryWriter.SafeHeapWriter.limitMinusOne
private

Definition at line 924 of file BinaryWriter.java.

◆ offset

int com.google.protobuf.BinaryWriter.SafeHeapWriter.offset
private

Definition at line 921 of file BinaryWriter.java.

◆ offsetMinusOne

int com.google.protobuf.BinaryWriter.SafeHeapWriter.offsetMinusOne
private

Definition at line 923 of file BinaryWriter.java.

◆ pos

int com.google.protobuf.BinaryWriter.SafeHeapWriter.pos
private

Definition at line 925 of file BinaryWriter.java.


The documentation for this class was generated from the following file:
offset
GLintptr offset
Definition: glcorearb.h:2944
position
intern position
Definition: array.c:487
com.google.protobuf.BinaryWriter.SafeHeapWriter.limit
int limit
Definition: BinaryWriter.java:922
value
GLsizei const GLfloat * value
Definition: glcorearb.h:3093


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06