public interface Predictable<T>
| Modifier and Type | Method and Description |
|---|---|
static int |
byteArraySize(int value) |
static int |
signedIntSize(int value) |
static int |
signedLongSize(long value) |
default OptionalInt |
size(org.infinispan.protostream.ImmutableSerializationContext context,
T value)
Returns the size of the buffer to use for marshalling the specified object, if known.
|
static int |
stringSize(String value) |
static int |
unsignedIntSize(int value) |
static int |
unsignedLongSize(long value) |
default OptionalInt size(org.infinispan.protostream.ImmutableSerializationContext context, T value)
context - the serialization contextvalue - the value to be marshalled.static int unsignedIntSize(int value)
static int signedIntSize(int value)
static int byteArraySize(int value)
static int stringSize(String value)
static int unsignedLongSize(long value)
static int signedLongSize(long value)
Copyright © 2020 JBoss by Red Hat. All rights reserved.