| Package | Description |
|---|---|
| net.tomp2p.synchronization |
| Modifier and Type | Method and Description |
|---|---|
static List<Instruction> |
SyncUtils.decodeInstructions(io.netty.buffer.ByteBuf buf) |
ArrayList<Instruction> |
SyncBuilder.instructions() |
static List<Instruction> |
RSync.instructions(byte[] array,
List<Checksum> checksums,
int blockSize)
It returns the sequence of instructions each of which contains either
reference to a block or literal data.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
SyncUtils.encodeInstructions(List<Instruction> instructions,
Number160 versionKey,
Number160 hash,
AlternativeCompositeByteBuf buf) |
static DataBuffer |
RSync.reconstruct(byte[] value,
List<Instruction> instructions,
int blockSize)
It reconstructs the copy of responsible peer's value using instructions
and the replica's value.
|
Copyright © 2015. All rights reserved.