| Modifier and Type | Method and Description |
|---|---|
abstract ProtoSink |
ProtoSink.clear()
Clears internal state and removes any references to previous outputs.
|
static ProtoSink |
ProtoSink.newArraySink()
Creates a new
ProtoSink that writes directly to a byte array. |
static ProtoSink |
ProtoSink.newBufferSink()
Creates a new
ProtoSink that writes directly to a ByteBuffer. |
static ProtoSink |
ProtoSink.newBytesSink()
Creates a new
ProtoSink that writes to a RepeatedByte. |
static ProtoSink |
ProtoSink.newDirectSink()
Creates a new
ProtoSink that writes directly to a byte array or
direct memory. |
static ProtoSink |
ProtoSink.newInstance(byte[] flatArray)
Create a new
ProtoSink that writes directly to the given
byte array. |
static ProtoSink |
ProtoSink.newInstance(byte[] flatArray,
int offset,
int length)
Create a new
ProtoSink that writes directly to the given
byte array slice. |
static ProtoSink |
ProtoSink.newInstance(ByteBuffer buffer)
Create a new ProtoSink writing to the given
ByteBuffer. |
static ProtoSink |
ProtoSink.newInstance(OutputStream stream)
Create a new ProtoSink writing to the given
OutputStream. |
static ProtoSink |
ProtoSink.newInstance(RepeatedByte bytes)
Create a new ProtoSink writing to the given
RepeatedByte. |
static ProtoSink |
ProtoSink.newStreamSink()
Creates a new
ProtoSink that writes directly to an OutputStream. |
abstract ProtoSink |
ProtoSink.reset()
Resets the position within the internal buffer to zero.
|
ProtoSink |
ProtoSink.setOutput(byte[] buffer)
Changes the output to the given array.
|
ProtoSink |
ProtoSink.setOutput(byte[] buffer,
long offset,
int length)
Changes the output to the given array.
|
ProtoSink |
ProtoSink.setOutput(ByteBuffer buffer)
Changes the output to the given buffer.
|
ProtoSink |
ProtoSink.setOutput(OutputStream stream)
Changes the output to the given stream.
|
ProtoSink |
ProtoSink.setOutput(RepeatedByte bytes)
Changes the output to the given bytes.
|
| Modifier and Type | Method and Description |
|---|---|
MessageType |
ProtoMessage.writeDelimitedTo(ProtoSink output)
Serializes the message and writes it to the
output in
length delimited form. |
RepeatedByte |
RepeatedByte.writeTo(ProtoSink sink) |
abstract void |
ProtoMessage.writeTo(ProtoSink output)
Serializes the message and writes it to
output. |
Utf8String |
Utf8String.writeTo(ProtoSink sink) |
Copyright © 2019–2024 HEBI Robotics. All rights reserved.