public class BytesSliceBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
BytesSliceBuilder |
from(int index)
Sets an index from, the beginning of the slice.
|
BytesSliceBuilder |
length(int length)
Sets a length of the slice.
|
BytesSliceBuilder |
to(int index)
Sets an index to, the ending of the slice.
|
byte[] |
toByteArray()
Creates a byte array slice from the builder.
|
Bytes |
toMutableBytes()
|
Bytes |
toNewBytes()
|
Bytes |
toReadOnlyBytes()
|
public BytesSliceBuilder from(int index)
index - the from index for a slice.this object for chaining callspublic BytesSliceBuilder to(int index)
index - the to index for a slice.this object for chaining callspublic BytesSliceBuilder length(int length)
length - the length of the slice.this object for chaining callspublic byte[] toByteArray()
Copyright © 2019–2020 Appulse. All rights reserved.