public class DLedgerEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BODY_OFFSET |
static int |
HEADER_SIZE |
static int |
POS_OFFSET |
| Constructor and Description |
|---|
DLedgerEntry() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeSizeInBytes() |
boolean |
equals(Object entry) |
byte[] |
getBody() |
int |
getBodyCrc() |
int |
getChainCrc() |
int |
getChannel() |
long |
getIndex() |
int |
getMagic() |
long |
getPos() |
int |
getSize() |
long |
getTerm() |
int |
hashCode() |
void |
setBody(byte[] body) |
void |
setBodyCrc(int bodyCrc) |
void |
setChainCrc(int chainCrc) |
void |
setChannel(int channel) |
void |
setIndex(long index) |
void |
setMagic(int magic) |
void |
setPos(long pos) |
void |
setSize(int size) |
void |
setTerm(long term) |
public static final int POS_OFFSET
public static final int HEADER_SIZE
public static final int BODY_OFFSET
public int getSize()
public void setSize(int size)
public int getMagic()
public void setMagic(int magic)
public long getTerm()
public void setTerm(long term)
public long getIndex()
public void setIndex(long index)
public int getChainCrc()
public void setChainCrc(int chainCrc)
public byte[] getBody()
public void setBody(byte[] body)
public int getBodyCrc()
public void setBodyCrc(int bodyCrc)
public int computeSizeInBytes()
public long getPos()
public void setPos(long pos)
public int getChannel()
public void setChannel(int channel)
Copyright © 2023. All rights reserved.