public enum Wires extends Enum<Wires>
| Modifier and Type | Field and Description |
|---|---|
static int |
LENGTH_MASK |
static int |
META_DATA |
static int |
NOT_READY |
static int |
UNKNOWN_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static StringBuilder |
acquireAnotherStringBuilder(CharSequence cs) |
static StringBuilder |
acquireStringBuilder() |
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes) |
static String |
fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes,
long position,
long length) |
static boolean |
isData(long len) |
static boolean |
isKnownLength(long len) |
static boolean |
isReady(long len) |
static int |
lengthOf(long len) |
static boolean |
readData(WireIn wireIn,
java.util.function.Consumer<WireIn> metaDataConsumer,
java.util.function.Consumer<WireIn> dataConsumer) |
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 void |
writeData(WireOut wireOut,
boolean metaData,
java.util.function.Consumer<WireOut> writer) |
public static final int NOT_READY
public static final int META_DATA
public static final int UNKNOWN_LENGTH
public static final int LENGTH_MASK
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 StringBuilder acquireStringBuilder()
public static StringBuilder acquireAnotherStringBuilder(CharSequence cs)
public static void writeData(WireOut wireOut, boolean metaData, java.util.function.Consumer<WireOut> writer)
public static boolean readData(@NotNull
WireIn wireIn,
@Nullable
java.util.function.Consumer<WireIn> metaDataConsumer,
@Nullable
java.util.function.Consumer<WireIn> dataConsumer)
public static String fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes)
@NotNull public static String fromSizePrefixedBlobs(net.openhft.chronicle.bytes.Bytes bytes, long position, long length)
public static int lengthOf(long len)
public static boolean isReady(long len)
public static boolean isData(long len)
public static boolean isKnownLength(long len)
Copyright © 2015. All rights reserved.