public final class Preamble extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Preamble.Builder
Builder for the Preamble
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static Preamble |
fromLogK(int logK)
Instantiates a new Preamble with the parameter log_base2 of K.
|
static Preamble |
fromMemory(Memory memory)
Instantiates a new Preamble from the given Memory
|
int |
getConfigK()
Gets the configured K
|
byte |
getFamilyId()
Gets the Family ID
|
byte |
getFlags()
Gets the flags byte
|
byte |
getLogConfigK()
Gets the log_base2 of the configured K
|
int |
getMaxAuxSize()
Gets the maximum auxiliary size
|
byte |
getPreambleLongs()
Gets the size of the Preamble in longs
|
short |
getSeedHash()
Gets the seed hash
|
byte |
getVersion()
Gets the serialization version of this Preamble
|
int |
hashCode() |
byte[] |
toByteArray()
Serializes this Preamble to a byte array.
|
public static Preamble fromMemory(Memory memory)
memory - the given Memorypublic static Preamble fromLogK(int logK)
logK - log_base2 of the desired Kpublic byte[] toByteArray()
public byte getPreambleLongs()
public byte getVersion()
public byte getFamilyId()
public byte getLogConfigK()
public int getConfigK()
public int getMaxAuxSize()
public byte getFlags()
public short getSeedHash()
Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.