in serialization/src/main/java/com/twitter/serial/stream/bytebuffer/ByteBufferSerializerInput.java [96:106]
public double readDouble() throws IOException {
try {
final byte subtype = readHeader(SerializerDefs.TYPE_DOUBLE);
if (subtype == ByteBufferSerializerDefs.SUBTYPE_DEFAULT) {
return 0d;
}
return mByteBuffer.getDouble();
} catch (BufferUnderflowException ignore) {
throw new EOFException();
}
}