Encode { public static void int8(long value, OutputStream stream) throws IOException { int8(value, stream, null); }  static void varIntList(long[] values, OutputStream stream); static void varIntList(long[] values, ByteBuffer buffer); static void varInt(long value, OutputStream stream); static void varInt(long value, ByteBuffer buffer); static byte[] varInt(long value); static void varInt(long value, OutputStream stream, AccessCounter counter); static void int8(long value, OutputStream stream); static void int8(long value, OutputStream stream, AccessCounter counter); static void int16(long value, OutputStream stream); static void int16(long value, OutputStream stream, AccessCounter counter); static void int16(long value, ByteBuffer buffer); static void int32(long value, OutputStream stream); static void int32(long value, OutputStream stream, AccessCounter counter); static void int32(long value, ByteBuffer buffer); static void int64(long value, OutputStream stream); static void int64(long value, OutputStream stream, AccessCounter counter); static void int64(long value, ByteBuffer buffer); static void varString(String value, OutputStream out); static void varString(String value, ByteBuffer buffer); static void varBytes(byte[] data, OutputStream out); static void varBytes(byte[] data, ByteBuffer buffer); static byte[] bytes(Streamable streamable); static byte[] bytes(Streamable streamable, int padding);  }
@Test public void testUint8() throws IOException { ByteArrayOutputStream stream = new ByteArrayOutputStream(); Encode.int8(0, stream); checkBytes(stream, 0); stream = new ByteArrayOutputStream(); Encode.int8(255, stream); checkBytes(stream, 255); }