readTo static method
Reads the contents of a
into b
using ByteBuf.readByte of a
.
Does ignore the writer index of b
.
Implementation
static void readTo(ByteBuf a, ByteBuf b) {
for (int i = 0; i < a.readableBytes; i++) {
b[i] = a.readByte();
}
}