@Override public void writeFloat(float f) throws IOException { ensureBounds(4); pos += BinaryData.encodeFloat(f, buf, pos); }
@Override public void writeInt(int n) throws IOException { ensureBounds(5); pos += BinaryData.encodeInt(n, buf, pos); }
@Override public void writeDouble(double d) throws IOException { ensureBounds(8); pos += BinaryData.encodeDouble(d, buf, pos); }
@Override public void writeLong(long n) throws IOException { ensureBounds(10); pos += BinaryData.encodeLong(n, buf, pos); }
@Override public void writeLong(long n) throws IOException { ensureBounds(10); pos += BinaryData.encodeLong(n, buf, pos); }
@Override public void writeFloat(float f) throws IOException { ensureBounds(4); pos += BinaryData.encodeFloat(f, buf, pos); }
@Override public void writeInt(int n) throws IOException { ensureBounds(5); pos += BinaryData.encodeInt(n, buf, pos); }
@Override public void writeDouble(double d) throws IOException { ensureBounds(8); pos += BinaryData.encodeDouble(d, buf, pos); }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { if (len > bulkLimit) { //too big, write direct flushBuffer(); sink.innerWrite(bytes, start, len); return; } ensureBounds(len); System.arraycopy(bytes, start, buf, pos, len); pos += len; }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { if (len > bulkLimit) { //too big, write direct flushBuffer(); sink.innerWrite(bytes, start, len); return; } ensureBounds(len); System.arraycopy(bytes, start, buf, pos, len); pos += len; }
@Override public void writeInt(int n) throws IOException { ensureBounds(5); pos += BinaryData.encodeInt(n, buf, pos); }
@Override public void writeFloat(float f) throws IOException { ensureBounds(4); pos += BinaryData.encodeFloat(f, buf, pos); }
@Override public void writeLong(long n) throws IOException { ensureBounds(10); pos += BinaryData.encodeLong(n, buf, pos); }
@Override public void writeFloat(float f) throws IOException { ensureBounds(4); pos += BinaryData.encodeFloat(f, buf, pos); }
@Override public void writeLong(long n) throws IOException { ensureBounds(10); pos += BinaryData.encodeLong(n, buf, pos); }
@Override public void writeDouble(double d) throws IOException { ensureBounds(8); pos += BinaryData.encodeDouble(d, buf, pos); }
@Override public void writeInt(int n) throws IOException { ensureBounds(5); pos += BinaryData.encodeInt(n, buf, pos); }
@Override public void writeDouble(double d) throws IOException { ensureBounds(8); pos += BinaryData.encodeDouble(d, buf, pos); }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { if (len > bulkLimit) { //too big, write direct flushBuffer(); sink.innerWrite(bytes, start, len); return; } ensureBounds(len); System.arraycopy(bytes, start, buf, pos, len); pos += len; }
@Override public void writeFixed(byte[] bytes, int start, int len) throws IOException { if (len > bulkLimit) { //too big, write direct flushBuffer(); sink.innerWrite(bytes, start, len); return; } ensureBounds(len); System.arraycopy(bytes, start, buf, pos, len); pos += len; }