public enum BytesUtil extends Enum<BytesUtil>
Modifier and Type | Method and Description |
---|---|
static void |
appendUtf8(StreamingDataOutput out,
CharSequence cs) |
static int |
asInt(String str) |
static boolean |
bytesEqual(CharSequence cs,
RandomDataInput bs,
long offset,
int length) |
static boolean |
bytesEqual(RandomDataInput a,
long offset,
RandomDataInput second,
long secondOffset,
long len) |
static boolean |
equals(Object o1,
Object o2) |
static void |
parseUtf8(StreamingDataInput in,
Appendable appendable,
int utflen) |
static long |
readStopBit(StreamingDataInput in) |
static int |
stopBitLength(long n) |
static char[] |
toCharArray(Bytes bytes) |
static char[] |
toCharArray(Bytes bytes,
long position,
int length) |
static long |
utf8Length(CharSequence cs) |
static BytesUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BytesUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static void |
writeStopBit(StreamingDataOutput out,
long n) |
public static BytesUtil[] values()
for (BytesUtil c : BytesUtil.values()) System.out.println(c);
public static BytesUtil 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 boolean bytesEqual(@NotNull RandomDataInput a, long offset, @NotNull RandomDataInput second, long secondOffset, long len) throws net.openhft.chronicle.core.io.IORuntimeException, BufferUnderflowException
net.openhft.chronicle.core.io.IORuntimeException
BufferUnderflowException
public static boolean bytesEqual(CharSequence cs, RandomDataInput bs, long offset, int length)
public static int asInt(@NotNull String str)
public static int stopBitLength(long n)
public static char[] toCharArray(Bytes bytes)
public static char[] toCharArray(Bytes bytes, long position, int length)
public static long readStopBit(StreamingDataInput in)
public static void writeStopBit(StreamingDataOutput out, long n)
public static long utf8Length(CharSequence cs)
public static void parseUtf8(@NotNull StreamingDataInput in, Appendable appendable, int utflen)
public static void appendUtf8(@NotNull StreamingDataOutput out, @NotNull CharSequence cs)
Copyright © 2016. All rights reserved.