webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
class | Builder |
Public Member Functions | |
ByteString | toByteString () |
byte [] | toByteArray () |
void | writeTo (final OutputStream output) throws IOException |
void | writeDelimitedTo (final OutputStream output) throws IOException |
Static Protected Member Functions | |
static void | checkByteStringIsUtf8 (ByteString byteString) throws IllegalArgumentException |
static< T > void | addAll (final Iterable< T > values, final Collection<? super T > list) |
Protected Attributes | |
int | memoizedHashCode = 0 |
A partial implementation of the MessageLite interface which implements as many methods of that interface as possible in terms of other methods.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inline |
Serializes the message to a
array and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).
Implements com.google.protobuf.MessageLite.
|
inline |
Serializes the message to a
and returns it. This is just a trivial wrapper around writeTo(CodedOutputStream).
Implements com.google.protobuf.MessageLite.
|
inline |
Like writeTo(OutputStream), but writes the size of the message as a varint before writing the data. This allows more data to be written to the stream after the message without the need to delimit the message data yourself. Use Builder#mergeDelimitedFrom(InputStream) (or the static method
) to parse messages written by this method.
Implements com.google.protobuf.MessageLite.
|
inline |
Serializes the message and writes it to
. This is just a trivial wrapper around writeTo(CodedOutputStream). This does not flush or close the stream.
NOTE: Protocol Buffers are not self-delimiting. Therefore, if you write any more data to the stream after the message, you must somehow ensure that the parser on the receiving end does not interpret this as being part of the protocol message. This can be done e.g. by writing the size of the message before the data, then making sure to limit the input to that size on the receiving end (e.g. by wrapping the InputStream in one which limits the input). Alternatively, just use writeDelimitedTo(OutputStream).
Implements com.google.protobuf.MessageLite.
|
protected |