@Override public ByteBuf setLong(int index, long value) { buf.setLong(index, value); return this; }
@Test(expected = ReadOnlyBufferException.class) public void testSetLong() { ByteBuf buf = buffer(allocate(8).asReadOnlyBuffer()); buf.setLong(0, 1); }