public class DLedgerEntryCoder extends Object
| Constructor and Description |
|---|
DLedgerEntryCoder() |
| Modifier and Type | Method and Description |
|---|---|
static DLedgerEntry |
decode(ByteBuffer byteBuffer) |
static DLedgerEntry |
decode(ByteBuffer byteBuffer,
boolean readBody) |
static void |
encode(DLedgerEntry entry,
ByteBuffer byteBuffer) |
static void |
encodeIndex(long pos,
int size,
int magic,
long index,
long term,
ByteBuffer byteBuffer) |
static long |
getPos(ByteBuffer byteBuffer) |
static void |
setIndexTerm(ByteBuffer byteBuffer,
long index,
long term,
int magic) |
static void |
setPos(ByteBuffer byteBuffer,
long pos) |
public static void encode(DLedgerEntry entry, ByteBuffer byteBuffer)
public static void encodeIndex(long pos,
int size,
int magic,
long index,
long term,
ByteBuffer byteBuffer)
public static DLedgerEntry decode(ByteBuffer byteBuffer)
public static DLedgerEntry decode(ByteBuffer byteBuffer, boolean readBody)
public static void setPos(ByteBuffer byteBuffer, long pos)
public static long getPos(ByteBuffer byteBuffer)
public static void setIndexTerm(ByteBuffer byteBuffer, long index, long term, int magic)
Copyright © 2023. All rights reserved.