public byte readByte()

in serialization/src/main/java/com/twitter/serial/stream/bytebuffer/ByteBufferSerializerInput.java [55:65]


    public byte readByte() throws IOException {
        try {
            final byte subtype = readHeader(SerializerDefs.TYPE_BYTE);
            if (subtype == ByteBufferSerializerDefs.SUBTYPE_DEFAULT) {
                return 0;
            }
            return mByteBuffer.get();
        } catch (BufferUnderflowException ignore) {
            throw new EOFException();
        }
    }