public class Types extends Object
| Constructor and Description |
|---|
Types() |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendAsJsonString(StringBuilder sb,
DirectBuffer buffer,
int index,
Encoding encoding)
Append an encoding as a Json String to a
StringBuilder. |
static void |
appendAsJsonString(StringBuilder sb,
PrimitiveValue value,
Encoding encoding)
Append a value as a Json String to a
StringBuilder. |
static void |
appendAsString(StringBuilder sb,
DirectBuffer buffer,
int index,
Encoding encoding)
Append an encoding as a String to a
StringBuilder. |
static int |
getInt(DirectBuffer buffer,
int index,
PrimitiveType type,
ByteOrder byteOrder)
Get an integer value from a buffer at a given index for a
PrimitiveType. |
static long |
getLong(DirectBuffer buffer,
int index,
Encoding encoding)
Get a long value from a buffer at a given index for a given
Encoding. |
public static int getInt(DirectBuffer buffer, int index, PrimitiveType type, ByteOrder byteOrder)
PrimitiveType.buffer - from which to read.index - at which the integer should be read.type - of the integer encoded in the buffer.byteOrder - of the integer in the buffer.public static long getLong(DirectBuffer buffer, int index, Encoding encoding)
Encoding.buffer - from which to read.index - at which the integer should be read.encoding - of the value.public static void appendAsString(StringBuilder sb, DirectBuffer buffer, int index, Encoding encoding)
StringBuilder.sb - to append the encoding to.buffer - containing the encoded value.index - at which the encoded value exists.encoding - representing the encoded value.public static void appendAsJsonString(StringBuilder sb, DirectBuffer buffer, int index, Encoding encoding)
StringBuilder.sb - to append the encoding to.buffer - containing the encoded value.index - at which the encoded value exists.encoding - representing the encoded value.public static void appendAsJsonString(StringBuilder sb, PrimitiveValue value, Encoding encoding)
StringBuilder.sb - to append the value to.value - to append.encoding - representing the encoded value.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.