@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { doWriteBytes(bytes, start, len); }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { doWriteBytes(bytes, start, len); }
@Override public void writeFixed(ByteBuffer bytes) throws IOException { int pos = bytes.position(); int len = bytes.remaining(); if (bytes.hasArray()) { doWriteBytes(bytes.array(), bytes.arrayOffset() + pos, len); } else { byte[] b = new byte[len]; bytes.duplicate().get(b, 0, len); doWriteBytes(b, 0, len); } }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { doWriteBytes(bytes, start, len); }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { doWriteBytes(bytes, start, len); }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { doWriteBytes(bytes, start, len); assert check(); }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { doWriteBytes(bytes, start, len); assert check(); }
@Override public void writeBytes(byte[] bytes, int start, int len) throws IOException { if (pos + 5 > buf.length) { ensure(5); } pos = encodeLong(len, buf, pos); doWriteBytes(bytes, start, len); assert check(); }
@Override public void writeBytes(byte[] bytes, int start, int len) throws IOException { if (pos + 5 > buf.length) { ensure(5); } pos = encodeLong(len, buf, pos); doWriteBytes(bytes, start, len); assert check(); }