| Modifier and Type | Method and Description |
|---|---|
abstract ProtoSource |
ProtoSource.clear()
Clears internal state and removes any references to previous inputs.
|
ProtoSource |
ProtoSource.discardUnknownFields()
Sets this
ProtoSource to discard unknown fields. |
static ProtoSource |
ProtoSource.newArraySource()
Creates a new
ProtoSource that reads directly from a byte array. |
static ProtoSource |
ProtoSource.newBufferSource()
Creates a new
ProtoSource that reads from an ByteBuffer. |
static ProtoSource |
ProtoSource.newDirectSource()
Creates a new
ProtoSource that reads from a byte array or
direct / off-heap memory. |
static ProtoSource |
ProtoSource.newInstance(byte[] buf)
Create a new ProtoSource reading from the given byte array.
|
static ProtoSource |
ProtoSource.newInstance(byte[] buf,
int off,
int len)
Create a new ProtoSource reading from the given byte array slice.
|
static ProtoSource |
ProtoSource.newInstance(ByteBuffer buffer)
Create a new ProtoSource reading from the given
ByteBuffer. |
static ProtoSource |
ProtoSource.newInstance(InputStream stream)
Create a new ProtoSource reading from the given
InputStream. |
static ProtoSource |
ProtoSource.newInstance(RepeatedByte bytes)
Create a new ProtoSource reading from the current array of the given
RepeatedByte. |
static ProtoSource |
ProtoSource.newStreamSource()
Creates a new
ProtoSource that reads from an InputStream. |
abstract ProtoSource |
JsonSource.readBytesAsSource() |
protected ProtoSource |
ProtoSource.resetInternalState() |
ProtoSource |
ProtoSource.resetSizeCounter()
Resets the current size counter to zero (see
setSizeLimit(int)). |
ProtoSource |
ProtoSource.setInput(byte[] buffer)
Changes the input to the given array.
|
ProtoSource |
ProtoSource.setInput(byte[] buffer,
long off,
int len)
Changes the input to the given array.
|
ProtoSource |
ProtoSource.setInput(ByteBuffer buffer)
Changes the input to the given buffer.
|
ProtoSource |
ProtoSource.setInput(InputStream stream)
Changes the input to the given stream.
|
ProtoSource |
ProtoSource.setInput(RepeatedByte bytes)
Changes the input to the current array of the given
RepeatedByte. |
ProtoSource |
ProtoSource.unsetDiscardUnknownFields()
Reverts the unknown fields preservation behavior to the default.
|
| Modifier and Type | Method and Description |
|---|---|
MessageType |
ProtoMessage.mergeDelimitedFrom(ProtoSource input)
Merges the contents for one message written in length delimited form.
|
abstract MessageType |
ProtoMessage.mergeFrom(ProtoSource input)
Parse
input as a message of this type and merge it with the
message being built. |
static <T extends ProtoMessage<T>> |
ProtoMessage.mergeFrom(T msg,
ProtoSource input)
Parse
input as a message of this type and merge it with the message being built. |
Copyright © 2019–2024 HEBI Robotics. All rights reserved.