public enum BinaryLengthLength extends Enum<BinaryLengthLength>
Enum Constant and Description |
---|
LENGTH_16BIT |
LENGTH_32BIT |
LENGTH_8BIT |
Modifier and Type | Method and Description |
---|---|
abstract int |
code() |
abstract long |
initialise(@NotNull BytesOut<?> bytes) |
static BinaryLengthLength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BinaryLengthLength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract void |
writeLength(@NotNull Bytes<?> bytes,
long positionReturnedFromInitialise,
long end) |
public static final BinaryLengthLength LENGTH_8BIT
public static final BinaryLengthLength LENGTH_16BIT
public static final BinaryLengthLength LENGTH_32BIT
public static BinaryLengthLength[] values()
for (BinaryLengthLength c : BinaryLengthLength.values()) System.out.println(c);
public static BinaryLengthLength 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 abstract int code()
public abstract long initialise(@NotNull @NotNull BytesOut<?> bytes)
public abstract void writeLength(@NotNull @NotNull Bytes<?> bytes, long positionReturnedFromInitialise, long end)
Copyright © 2022. All rights reserved.