| Modifier and Type | Method and Description |
|---|---|
protected Utf8String[] |
RepeatedString.allocateArray0(int desiredSize) |
Utf8String |
Utf8String.copyFrom(CharSequence other)
Holds on to immutable Strings and lazily encodes them, or
encodes the sequence directly if it is not a String.
|
Utf8String |
Utf8String.copyFrom(String other)
Holds on to the reference of the String and encodes it when required.
|
Utf8String |
Utf8String.copyFrom(Utf8String other) |
Utf8String |
Utf8String.copyFromEncoded(CharSequence other)
Encodes the sequence immediately and does not hold on to the reference
|
Utf8String |
Utf8String.copyFromUtf8(byte[] bytes) |
Utf8String |
Utf8String.copyFromUtf8(byte[] bytes,
int offset,
int length) |
protected Utf8String |
RepeatedString.createEmpty() |
Utf8String |
Utf8String.ensureSerialized()
Makes sure that the content is in serialized form.
|
static Utf8String |
Utf8String.newEmptyInstance() |
static Utf8String |
Utf8String.newEncodedInstance(CharSequence initialValue) |
static Utf8String |
Utf8String.newInstance(String initialValue) |
Utf8String |
Utf8String.writeTo(ByteBuffer buffer) |
Utf8String |
Utf8String.writeTo(OutputStream outputStream) |
Utf8String |
Utf8String.writeTo(ProtoSink sink) |
| Modifier and Type | Method and Description |
|---|---|
static int |
ProtoSink.computeStringSizeNoTag(Utf8String value)
Compute the number of bytes that would be needed to encode a
string field. |
Utf8String |
Utf8String.copyFrom(Utf8String other) |
protected void |
RepeatedString.copyFrom0(Utf8String store,
Utf8String other) |
void |
ProtoSource.readString(Utf8String store)
Read a
string field value from the source. |
abstract void |
JsonSource.readString(Utf8String store)
Read a
string field value from the source. |
JsonSink |
JsonSink.writeString(FieldName name,
Utf8String value) |
protected abstract void |
JsonSink.writeString(Utf8String value) |
void |
ProtoSink.writeStringNoTag(Utf8String value)
Write a
string field to the sink. |
Copyright © 2019–2024 HEBI Robotics. All rights reserved.