|
int | getTotalBytesWritten () |
|
void | write (byte value) |
|
void | write (byte[] value, int offset, int length) |
|
void | write (ByteBuffer value) |
|
void | writeBool (int fieldNumber, boolean value) |
|
void | writeBytes (int fieldNumber, ByteString value) |
|
void | writeEndGroup (int fieldNumber) |
|
void | writeFixed32 (int fieldNumber, int value) |
|
void | writeFixed64 (int fieldNumber, long value) |
|
void | writeGroup (int fieldNumber, Object value) throws IOException |
|
void | writeGroup (int fieldNumber, Object value, Schema schema) throws IOException |
|
void | writeInt32 (int fieldNumber, int value) |
|
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) |
|
void | writeSInt64 (int fieldNumber, long value) |
|
void | writeStartGroup (int fieldNumber) |
|
void | writeString (int fieldNumber, String value) |
|
void | writeUInt32 (int fieldNumber, int value) |
|
void | writeUInt64 (int fieldNumber, long value) |
|
Writer that uses safe operations on a target ByteBuffer.
Definition at line 1986 of file BinaryWriter.java.
◆ bytesWrittenToCurrentBuffer()
int com.google.protobuf.BinaryWriter.SafeDirectWriter.bytesWrittenToCurrentBuffer |
( |
| ) |
|
|
inlineprivate |
◆ getTotalBytesWritten()
int com.google.protobuf.BinaryWriter.SafeDirectWriter.getTotalBytesWritten |
( |
| ) |
|
|
inline |
◆ nextBuffer() [1/3]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.nextBuffer |
( |
| ) |
|
|
inlineprivate |
◆ nextBuffer() [2/3]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.nextBuffer |
( |
AllocatedBuffer |
allocatedBuffer | ) |
|
|
inlineprivate |
◆ nextBuffer() [3/3]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.nextBuffer |
( |
int |
capacity | ) |
|
|
inlineprivate |
◆ spaceLeft()
int com.google.protobuf.BinaryWriter.SafeDirectWriter.spaceLeft |
( |
| ) |
|
|
inlineprivate |
◆ write() [1/3]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.write |
( |
byte |
value | ) |
|
|
inline |
◆ write() [2/3]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.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
-
value | the bytes to be written |
offset | the offset of the start of the writable range |
length | the number of bytes to write starting from |
- Exceptions
-
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2464 of file BinaryWriter.java.
◆ write() [3/3]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.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
-
value | the bytes to be written. Upon returning from this call, the of this buffer will be set to the |
- Exceptions
-
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2494 of file BinaryWriter.java.
◆ writeBool()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeBool |
( |
int |
fieldNumber, |
|
|
boolean |
value |
|
) |
| |
|
inline |
◆ writeBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeBytes |
( |
int |
fieldNumber, |
|
|
ByteString |
value |
|
) |
| |
|
inline |
◆ writeEndGroup()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeEndGroup |
( |
int |
fieldNumber | ) |
|
|
inline |
◆ writeFixed32()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeFixed32 |
( |
int |
fieldNumber, |
|
|
int |
value |
|
) |
| |
|
inline |
◆ writeFixed64()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeFixed64 |
( |
int |
fieldNumber, |
|
|
long |
value |
|
) |
| |
|
inline |
◆ writeGroup() [1/2]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeGroup |
( |
int |
fieldNumber, |
|
|
Object |
value |
|
) |
| throws IOException |
|
inline |
◆ writeGroup() [2/2]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeGroup |
( |
int |
fieldNumber, |
|
|
Object |
value, |
|
|
Schema |
schema |
|
) |
| throws IOException |
|
inline |
◆ writeInt32()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeInt32 |
( |
int |
fieldNumber, |
|
|
int |
value |
|
) |
| |
|
inline |
◆ writeLazy() [1/2]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.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
-
value | the bytes to be written |
offset | the offset of the start of the writable range |
length | the number of bytes to write starting from |
- Exceptions
-
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2475 of file BinaryWriter.java.
◆ writeLazy() [2/2]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.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
-
value | the bytes to be written. Upon returning from this call, the of this buffer will be set to the |
- Exceptions
-
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2506 of file BinaryWriter.java.
◆ writeMessage() [1/2]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeMessage |
( |
int |
fieldNumber, |
|
|
Object |
value |
|
) |
| throws IOException |
|
inline |
◆ writeMessage() [2/2]
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeMessage |
( |
int |
fieldNumber, |
|
|
Object |
value, |
|
|
Schema |
schema |
|
) |
| throws IOException |
|
inline |
◆ writeSInt32()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeSInt32 |
( |
int |
fieldNumber, |
|
|
int |
value |
|
) |
| |
|
inline |
◆ writeSInt64()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeSInt64 |
( |
int |
fieldNumber, |
|
|
long |
value |
|
) |
| |
|
inline |
◆ writeStartGroup()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeStartGroup |
( |
int |
fieldNumber | ) |
|
|
inline |
◆ writeString()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeString |
( |
int |
fieldNumber, |
|
|
String |
value |
|
) |
| |
|
inline |
◆ writeUInt32()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeUInt32 |
( |
int |
fieldNumber, |
|
|
int |
value |
|
) |
| |
|
inline |
◆ writeUInt64()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeUInt64 |
( |
int |
fieldNumber, |
|
|
long |
value |
|
) |
| |
|
inline |
◆ writeVarint32FiveBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint32FiveBytes |
( |
int |
value | ) |
|
|
inlineprivate |
◆ writeVarint32FourBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint32FourBytes |
( |
int |
value | ) |
|
|
inlineprivate |
◆ writeVarint32OneByte()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint32OneByte |
( |
int |
value | ) |
|
|
inlineprivate |
◆ writeVarint32ThreeBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint32ThreeBytes |
( |
int |
value | ) |
|
|
inlineprivate |
◆ writeVarint32TwoBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint32TwoBytes |
( |
int |
value | ) |
|
|
inlineprivate |
◆ writeVarint64EightBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64EightBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64EightBytesWithSign()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64EightBytesWithSign |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64FiveBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64FiveBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64FourBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64FourBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64NineBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64NineBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64OneByte()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64OneByte |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64SevenBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64SevenBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64SixBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64SixBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64TenBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64TenBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64ThreeBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64ThreeBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ writeVarint64TwoBytes()
void com.google.protobuf.BinaryWriter.SafeDirectWriter.writeVarint64TwoBytes |
( |
long |
value | ) |
|
|
inlineprivate |
◆ buffer
ByteBuffer com.google.protobuf.BinaryWriter.SafeDirectWriter.buffer |
|
private |
◆ limitMinusOne
int com.google.protobuf.BinaryWriter.SafeDirectWriter.limitMinusOne |
|
private |
◆ pos
int com.google.protobuf.BinaryWriter.SafeDirectWriter.pos |
|
private |
The documentation for this class was generated from the following file: