public interface IBytesRange
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
buf() |
default void |
forEach(IntByteConsumer consumer) |
int |
from() |
default int |
getByte(int index)
正值从头开始计算偏移;负值从尾开始计算偏移
|
static IBytesRange |
of(java.util.function.Supplier<byte[]> bufGetter,
int from,
int size) |
int |
size() |
default byte[] |
toBytes() |
default byte[] |
toBytes(int pos,
int size) |
default String |
toHex() |
default String |
toHexMessage() |
default IBytesRange |
toSubRange(int pos,
int size) |
byte[] buf()
int from()
int size()
default int getByte(int index)
index - 索引default IBytesRange toSubRange(int pos, int size)
default String toHex()
default String toHexMessage()
default byte[] toBytes()
default byte[] toBytes(int pos,
int size)
default void forEach(IntByteConsumer consumer)
static IBytesRange of(java.util.function.Supplier<byte[]> bufGetter, int from, int size)
Copyright © 2022. All rights reserved.