public class KeyValueSlice extends Object
| Constructor and Description |
|---|
KeyValueSlice() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Returns the byte array in this slice.
|
int |
getKeyLength()
Returns the key length.
|
int |
getKeyOffset()
Returns the key offset in
getBytes(). |
int |
getSliceLength()
Returns the slice length.
|
int |
getSliceOffset()
Returns the slice offset in
#getBytes(). |
int |
getValueLength()
Returns the value length.
|
int |
getValueOffset()
Returns the value offset in
getBytes(). |
void |
set(byte[] newBytes,
int newOffset,
int newKeyLength,
int newValueLength)
Sets slice range.
|
void |
set(int newOffset,
int newKeyLength,
int newValueLength)
Sets slice range.
|
public void set(byte[] newBytes,
int newOffset,
int newKeyLength,
int newValueLength)
newBytes - the new byte arraynewOffset - the new offset in the specified byte arraynewKeyLength - the key lengthnewValueLength - the value lengthpublic void set(int newOffset,
int newKeyLength,
int newValueLength)
newOffset - the new offset in current byte arraynewKeyLength - the key lengthnewValueLength - the value lengthpublic byte[] getBytes()
public int getKeyOffset()
getBytes().public int getValueOffset()
getBytes().public int getSliceOffset()
#getBytes().getKeyOffset(),
getValueOffset()public int getKeyLength()
public int getValueLength()
public int getSliceLength()
Copyright © 2011–2018 Asakusa Framework Team. All rights reserved.