| Modifier and Type | Field and Description |
|---|---|
| protected volatile int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public MessageNano | |
| protected int | |
| public int | |
| public int | |
| public abstract MessageNano | mergeFrom(CodedInputByteBufferNano input)
Parse |
| public static final <T extends MessageNano> T | mergeFrom(T msg, final byte[] data)
Parse |
| public static final <T extends MessageNano> T | mergeFrom(T msg, final byte[] data, final int off, final int len)
Parse |
| public static final boolean | messageNanoEquals(MessageNano a, MessageNano b)
Compares two |
| public static final byte[] | |
| public static final void | toByteArray(MessageNano msg, byte[] data, int offset, int length)
Serialize to a byte array starting at offset through length. |
| public String | toString()
Overrides java. |
| public void | writeTo(CodedOutputByteBufferNano
the output to receive the serialized form. output)Serializes the message and writes it to |
| cachedSize | back to summary |
|---|---|
| protected volatile int cachedSize | |
| MessageNano | back to summary |
|---|---|
| public MessageNano() | |
| clone | back to summary |
|---|---|
| public MessageNano clone() throws CloneNotSupportedException Overrides java. Provides support for cloning. This only works if you specify the generate_clone method.
| |
| computeSerializedSize | back to summary |
|---|---|
| protected int computeSerializedSize() Computes the number of bytes required to encode this message. This does not update the cached size. | |
| getCachedSize | back to summary |
|---|---|
| public int getCachedSize() Get the number of bytes required to encode this message. Returns the cached size or calls getSerializedSize which sets the cached size. This is used internally when serializing so the size is only computed once. If a member is modified then this could be stale call getSerializedSize if in doubt. | |
| getSerializedSize | back to summary |
|---|---|
| public int getSerializedSize() Computes the number of bytes required to encode this message. The size is cached and the cached result can be retrieved using getCachedSize(). | |
| mergeFrom | back to summary |
|---|---|
| public abstract MessageNano mergeFrom(CodedInputByteBufferNano input) throws IOException Parse | |
| mergeFrom | back to summary |
|---|---|
| public static final <T extends MessageNano> T mergeFrom(T msg, final byte[] data) throws InvalidProtocolBufferNanoException Parse | |
| mergeFrom | back to summary |
|---|---|
| public static final <T extends MessageNano> T mergeFrom(T msg, final byte[] data, final int off, final int len) throws InvalidProtocolBufferNanoException Parse | |
| messageNanoEquals | back to summary |
|---|---|
| public static final boolean messageNanoEquals(MessageNano a, MessageNano b) Compares two | |
| toByteArray | back to summary |
|---|---|
| public static final byte[] toByteArray(MessageNano msg) Serialize to a byte array.
| |
| toByteArray | back to summary |
|---|---|
| public static final void toByteArray(MessageNano msg, byte[] data, int offset, int length) Serialize to a byte array starting at offset through length. The method getSerializedSize must have been called prior to calling this method so the proper length is know. If an attempt to write more than length bytes OutOfSpaceException will be thrown and if length bytes are not written then IllegalStateException is thrown. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string that is (mostly) compatible with ProtoBuffer's TextFormat. Note that groups (which are deprecated) are not serialized with the correct field name. This is implemented using reflection, so it is not especially fast nor is it guaranteed to find all fields if you have method removal turned on for proguard.
| |
| writeTo | back to summary |
|---|---|
| public void writeTo(CodedOutputByteBufferNano output) throws IOException Serializes the message and writes it to
| |