in serialization/src/main/java/com/twitter/serial/stream/bytebuffer/ByteBufferSerializerInput.java [251:261]
private long readLongHeader(byte expectedType) throws IOException {
try {
final byte subtype = readHeader(expectedType);
if (subtype == ByteBufferSerializerDefs.SUBTYPE_LONG) {
return mByteBuffer.getLong();
}
return readIntValue(subtype) & 0xFFFFFFFFL;
} catch (BufferUnderflowException ignore) {
throw new EOFException();
}
}