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) |
Static Private Member Functions | |
static boolean | isSupported () |
static boolean | isSupported () |
Private Attributes | |
ByteBuffer | buffer |
long | bufferOffset |
long | limitMinusOne |
long | pos |
Writer that uses unsafe operations on a target ByteBuffer.
Definition at line 2534 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2604 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2604 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2584 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2584 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2580 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2580 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlinestaticprivate |
Indicates whether the required unsafe operations are supported on this platform.
Definition at line 2546 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlinestaticprivate |
Indicates whether the required unsafe operations are supported on this platform.
Definition at line 2546 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2550 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2550 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2558 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2558 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2554 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2554 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2588 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2588 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 2998 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 2998 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 3003 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 3003 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 3033 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 3033 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2658 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2658 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2675 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2675 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2728 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2728 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2630 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2630 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2651 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2651 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2709 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2709 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2716 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2716 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2616 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2616 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 3014 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 3014 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 3045 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 3045 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2689 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2689 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2699 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2699 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2623 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2623 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2644 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2644 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2723 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2723 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2665 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2665 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2609 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2609 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2637 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inline |
Definition at line 2637 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2798 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2798 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2791 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2791 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2776 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2776 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2785 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2785 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2780 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2780 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2891 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2891 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2864 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2864 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2857 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2857 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2902 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2902 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2842 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2842 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2881 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2881 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2872 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2872 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2914 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2914 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2851 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2851 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2846 of file protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
inlineprivate |
Definition at line 2846 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
private |
Definition at line 2535 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
private |
Definition at line 2536 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
private |
Definition at line 2537 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.
|
private |
Definition at line 2538 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java.