private < T > T readPrimitive ( int defaultSizeBytes , T defaultValue , Class < T > clazz ) { // Check for zeroes first, since partially-overwritten values are not an error for zeroes. if ( readZeroes ( defaultSizeBytes ) ) { return defaultValue ; } return readValue ( defaultValue , clazz , /* allowNull= */ false ) ; }
Reads a primitive which may reinterpret zeros of other types .