public class Slice extends Object
| Modifier and Type | Field and Description |
|---|---|
BigInteger |
length |
BigInteger |
offset |
Source |
source |
| Modifier and Type | Method and Description |
|---|---|
static Slice |
createFromBytes(byte[] data) |
static Optional<Slice> |
createFromSource(Source source,
BigInteger offset,
BigInteger length) |
boolean |
equals(Object obj) |
byte[] |
getData() |
byte[] |
getData(BigInteger limit) |
int |
hashCode() |
String |
toString() |
public final Source source
public final BigInteger offset
public final BigInteger length
public static Optional<Slice> createFromSource(Source source, BigInteger offset, BigInteger length)
public static Slice createFromBytes(byte[] data)
public byte[] getData()
public byte[] getData(BigInteger limit)
Copyright © 2017. All rights reserved.