public enum Wires extends Enum<Wires>
| Modifier and Type | Field and Description |
|---|---|
static net.openhft.chronicle.core.ClassLocal<SerializationStrategy> |
CLASS_STRATEGY |
static List<java.util.function.Function<Class,SerializationStrategy>> |
CLASS_STRATEGY_FUNCTIONS |
static WireIn |
EMPTY |
static int |
END_OF_DATA |
static int |
LENGTH_MASK |
static int |
MAX_LENGTH |
static int |
META_DATA |
static net.openhft.chronicle.bytes.Bytes<?> |
NO_BYTES |
static int |
NOT_COMPLETE |
static int |
NOT_COMPLETE_UNKNOWN_LENGTH |
static int |
NOT_INITIALIZED |
static int |
NOT_READY
Deprecated.
|
static int |
SPB_HEADER_SIZE |
static int |
UNKNOWN_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.bytes.Bytes |
acquireAnotherBytes() |
static Wire |
acquireBinaryWire() |
static net.openhft.chronicle.bytes.Bytes |
acquireBytes() |
static boolean |
acquireLock(net.openhft.chronicle.bytes.BytesStore store,
long position) |
static StringBuilder |
acquireStringBuilder() |
static CharSequence |
asText(WireIn wireIn) |
static <T> T |
copyTo(Object marshallable,
T t) |
static <T extends Marshallable> |
deepCopy(T marshallable) |
static boolean |
exceedsMaxLength(long length) |
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes)
This decodes some Bytes where the first 4-bytes is the length.
|
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes<?> bytes,
long position,
long length) |
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes,
long position) |
static String |
fromSizePrefixedBlobs(DocumentContext dc) |
static String |
fromSizePrefixedBlobs(WireIn wireIn) |
static boolean |
isData(int len) |
static boolean |
isData(long len)
Deprecated.
|
static boolean |
isEquals(Object o1,
Object o2) |
static boolean |
isKnownLength(int len) |
static boolean |
isNotComplete(int header) |
static boolean |
isNotInitialized(int len) |
static boolean |
isReady(int header) |
static boolean |
isReadyData(int header) |
static boolean |
isReadyMetaData(int len) |
static int |
lengthOf(int len) |
static <T> T |
project(Class<T> tClass,
Object obj) |
static <T> T |
read(Class<T> tClass,
ValueIn in) |
static void |
readMarshallable(Object marshallable,
WireIn wire,
boolean overwrite) |
static long |
readWire(WireIn wireIn,
long size,
ReadMarshallable readMarshallable) |
static int |
toIntU30(long l,
String error) |
static Wires |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Wires[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static <T extends WriteMarshallable> |
writeData(WireOut wireOut,
T writer) |
static void |
writeKey(Object marshallable,
net.openhft.chronicle.bytes.Bytes bytes) |
static void |
writeMarshallable(Object marshallable,
WireOut wire) |
static void |
writeMarshallable(Object marshallable,
WireOut wire,
Object previous,
boolean copy) |
public static final int LENGTH_MASK
public static final int NOT_COMPLETE
@Deprecated public static final int NOT_READY
public static final int META_DATA
public static final int UNKNOWN_LENGTH
public static final int MAX_LENGTH
public static final int NOT_COMPLETE_UNKNOWN_LENGTH
public static final int END_OF_DATA
public static final int NOT_INITIALIZED
public static final net.openhft.chronicle.bytes.Bytes<?> NO_BYTES
public static final WireIn EMPTY
public static final int SPB_HEADER_SIZE
public static final List<java.util.function.Function<Class,SerializationStrategy>> CLASS_STRATEGY_FUNCTIONS
public static final net.openhft.chronicle.core.ClassLocal<SerializationStrategy> CLASS_STRATEGY
public static Wires[] values()
for (Wires c : Wires.values()) System.out.println(c);
public static Wires valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static String fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes)
bytes - to decodepublic static String fromSizePrefixedBlobs(@NotNull net.openhft.chronicle.bytes.Bytes bytes, long position)
public static String fromSizePrefixedBlobs(@NotNull DocumentContext dc)
public static CharSequence asText(@NotNull WireIn wireIn)
public static StringBuilder acquireStringBuilder()
public static int lengthOf(int len)
public static boolean isReady(int header)
public static boolean isNotComplete(int header)
public static boolean isReadyData(int header)
@Deprecated public static boolean isData(long len)
public static boolean isData(int len)
public static boolean isReadyMetaData(int len)
public static boolean isKnownLength(int len)
public static boolean isNotInitialized(int len)
public static int toIntU30(long l,
@NotNull
String error)
public static boolean acquireLock(net.openhft.chronicle.bytes.BytesStore store,
long position)
public static boolean exceedsMaxLength(long length)
public static <T extends WriteMarshallable> long writeData(@NotNull WireOut wireOut, @NotNull T writer)
public static long readWire(@NotNull
WireIn wireIn,
long size,
@NotNull
ReadMarshallable readMarshallable)
public static net.openhft.chronicle.bytes.Bytes acquireBytes()
public static Wire acquireBinaryWire()
public static net.openhft.chronicle.bytes.Bytes acquireAnotherBytes()
public static String fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes<?> bytes, long position, long length)
public static void readMarshallable(Object marshallable, WireIn wire, boolean overwrite)
public static void writeMarshallable(Object marshallable, WireOut wire, Object previous, boolean copy)
public static void writeKey(Object marshallable, net.openhft.chronicle.bytes.Bytes bytes)
public static <T extends Marshallable> T deepCopy(T marshallable)
public static <T> T copyTo(Object marshallable, T t)
Copyright © 2016. All rights reserved.