public class DLedgerEntry
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BODY_OFFSET |
static int |
HEADER_SIZE |
static int |
POS_OFFSET |
| 构造器和说明 |
|---|
DLedgerEntry() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
computSizeInBytes() |
boolean |
equals(java.lang.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 computSizeInBytes()
public long getPos()
public void setPos(long pos)
public boolean equals(java.lang.Object entry)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic int getChannel()
public void setChannel(int channel)
Copyright © 2020. All Rights Reserved.