return copy;
}
protected static void checkRemaining(ByteBuffer bb, int offs, int length)
{
if (offs + length > bb.limit())
<BUG>throw new IllegalArgumentException("Not enough bytes");
}</BUG>
private static class Serializer implements CType.Serializer
{
private final CType type;

return copy;
}
protected static void checkRemaining(ByteBuffer bb, int offs, int length)
{
if (offs + length > bb.limit())
throw new IllegalArgumentException(String.format("Not enough bytes. Offset: %d. Length: %d. Buffer size: %d",
offs, length, bb.limit()));
}
private static class Serializer implements CType.Serializer
{
private final CType type;
