mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Created ByteInput#wrap(ByteBuf)
This commit is contained in:
parent
c7123a63f4
commit
1bd32e777d
@ -29,6 +29,10 @@ public class ByteInput {
|
||||
return bytes == null ? emptyByteInput() : new ByteInput(Unpooled.wrappedBuffer(bytes).asReadOnly());
|
||||
}
|
||||
|
||||
public static ByteInput wrap(ByteBuf buffer) {
|
||||
return new ByteInput(buffer.asReadOnly());
|
||||
}
|
||||
|
||||
private final ByteBuf buffer;
|
||||
private final int offset;
|
||||
private int mark;
|
||||
|
Loading…
Reference in New Issue
Block a user