Public Member Functions | |
int | getTotalBytesWritten () |
int | getTotalBytesWritten () |
void | write (byte value) |
void | write (byte value) |
void | write (byte[] value, int offset, int length) |
void | write (byte[] value, int offset, int length) |
void | write (ByteBuffer value) |
void | write (ByteBuffer value) |
void | writeBool (int fieldNumber, boolean value) |
void | writeBool (int fieldNumber, boolean value) |
void | writeBytes (int fieldNumber, ByteString value) |
void | writeBytes (int fieldNumber, ByteString value) |
void | writeEndGroup (int fieldNumber) |
void | writeEndGroup (int fieldNumber) |
void | writeFixed32 (int fieldNumber, int value) |
void | writeFixed32 (int fieldNumber, int value) |
void | writeFixed64 (int fieldNumber, long value) |
void | writeFixed64 (int fieldNumber, long value) |
void | writeGroup (int fieldNumber, Object value) throws IOException |
void | writeGroup (int fieldNumber, Object value) throws IOException |
void | writeGroup (int fieldNumber, Object value, Schema schema) throws IOException |
void | writeGroup (int fieldNumber, Object value, Schema schema) throws IOException |
void | writeInt32 (int fieldNumber, int value) |
void | writeInt32 (int fieldNumber, int value) |
void | writeLazy (byte[] value, int offset, int length) |
void | writeLazy (byte[] value, int offset, int length) |
void | writeLazy (ByteBuffer value) |
void | writeLazy (ByteBuffer value) |
void | writeMessage (int fieldNumber, Object value) throws IOException |
void | writeMessage (int fieldNumber, Object value) throws IOException |
void | writeMessage (int fieldNumber, Object value, Schema schema) throws IOException |
void | writeMessage (int fieldNumber, Object value, Schema schema) throws IOException |
void | writeSInt32 (int fieldNumber, int value) |
void | writeSInt32 (int fieldNumber, int value) |
void | writeSInt64 (int fieldNumber, long value) |
void | writeSInt64 (int fieldNumber, long value) |
void | writeStartGroup (int fieldNumber) |
void | writeStartGroup (int fieldNumber) |
void | writeString (int fieldNumber, String value) |
void | writeString (int fieldNumber, String value) |
void | writeUInt32 (int fieldNumber, int value) |
void | writeUInt32 (int fieldNumber, int value) |
void | writeUInt64 (int fieldNumber, long value) |
void | writeUInt64 (int fieldNumber, long value) |
Private Attributes | |
ByteBuffer | buffer |
int | limitMinusOne |
int | pos |
Writer that uses safe operations on a target ByteBuffer.
Definition at line 1986 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2031 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2031 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2027 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2027 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 1996 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 1996 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2004 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2004 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2000 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2000 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2035 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2035 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Writes a single byte.
value | the byte to be written |
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2459 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Writes a single byte.
value | the byte to be written |
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2459 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
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 |
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2464 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
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 |
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2464 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
value | the bytes to be written. Upon returning from this call, the of this buffer will be set to the limit
|
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2494 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
value | the bytes to be written. Upon returning from this call, the of this buffer will be set to the limit
|
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2494 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2101 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2101 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2118 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2118 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2171 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2171 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2073 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2073 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2094 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2094 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2152 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2152 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2159 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2159 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2059 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2059 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
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 |
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2475 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
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 |
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2475 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
value | the bytes to be written. Upon returning from this call, the of this buffer will be set to the limit
|
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2506 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
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.
value | the bytes to be written. Upon returning from this call, the of this buffer will be set to the limit
|
IOException | thrown if an error occurred while writing |
Reimplemented from com.google.protobuf.ByteOutput.
Definition at line 2506 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2132 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2132 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2142 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2142 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2066 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2066 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2087 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2087 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2166 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2166 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2108 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2108 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2052 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2052 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2080 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2080 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2250 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2250 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2239 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2239 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2219 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2219 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2229 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2229 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2223 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2223 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2353 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2353 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2368 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2368 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2314 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2314 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2310 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2310 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2383 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2383 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2298 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2298 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2339 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2339 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2326 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2326 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2388 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2388 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2306 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2306 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2302 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2302 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
private |
Definition at line 1987 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
private |
Definition at line 1988 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
private |
Definition at line 1989 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.