@Test public void readLongTooShortThrows() throws IOException { sink.writeLong(Long.MAX_VALUE); sink.emit(); source.readByte(); try { source.readLong(); fail(); } catch (EOFException expected) { } }
b1 |= PAYLOAD_LONG; sink.writeByte(b1); sink.writeLong(byteCount);
b1 |= PAYLOAD_LONG; sink.writeByte(b1); sink.writeLong(byteCount);
b1 |= PAYLOAD_LONG; sink.writeByte(b1); sink.writeLong(byteCount);