@Override public void init(ByteArrayRef bytes, int start, int length) { assert (4 == length); data.set(Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes .getData(), start))); } }
final int length = LazyBinaryUtils.byteArrayToInt(bytes, offset); offset += 4; field.end = offset + length;
throw new EOFException(); currentFloat = Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes, offset)); offset += 4; break;
case UNION: recordInfo.elementOffset = 4; recordInfo.elementSize = LazyBinaryUtils.byteArrayToInt(bytes, offset); break; default: {
@Override public void init(ByteArrayRef bytes, int start, int length) { assert (4 == length); data.set(Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes .getData(), start))); } }
@Override public void init(ByteArrayRef bytes, int start, int length) { assert (4 == length); data.set(Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes .getData(), start))); } }
@Override public void init(ByteArrayRef bytes, int start, int length) { assert (4 == length); data.set(Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes .getData(), start))); } }
@Override public void init(ByteArrayRef bytes, int start, int length) { assert (4 == length); data.set(Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes .getData(), start))); } }
@Override public void init(ByteArrayRef bytes, int start, int length) { assert (4 == length); data.set(Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes .getData(), start))); } }
@Override public float readFloat() throws IOException { // Last item -- ok to be at end. if (offset + 4 > end) { warnBeyondEof(); } float result = Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes, offset)); offset += 4; // Move past this NOT NULL field. fieldIndex++; // Every 8 fields we read a new NULL byte. if (fieldIndex < fieldCount) { if ((fieldIndex % 8) == 0) { // Get next null byte. if (offset >= end) { warnBeyondEof(); } nullByte = bytes[offset++]; } } return result; }
@Override public float readFloat() throws IOException { // Last item -- ok to be at end. if (offset + 4 > end) { warnBeyondEof(); } float result = Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes, offset)); offset += 4; // Move past this NOT NULL field. fieldIndex++; // Every 8 fields we read a new NULL byte. if (fieldIndex < fieldCount) { if ((fieldIndex % 8) == 0) { // Get next null byte. if (offset >= end) { warnBeyondEof(); } nullByte = bytes[offset++]; } } return result; }
@Override public float readFloat() throws IOException { // Last item -- ok to be at end. if (offset + 4 > end) { warnBeyondEof(); } float result = Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes, offset)); offset += 4; // Move past this NOT NULL field. fieldIndex++; // Every 8 fields we read a new NULL byte. if (fieldIndex < fieldCount) { if ((fieldIndex % 8) == 0) { // Get next null byte. if (offset >= end) { warnBeyondEof(); } nullByte = bytes[offset++]; } } return result; }
final int length = LazyBinaryUtils.byteArrayToInt(bytes, offset); offset += 4; field.end = offset + length;
case STRUCT: recordInfo.elementOffset = 4; recordInfo.elementSize = LazyBinaryUtils.byteArrayToInt(bytes, offset); break; default: {
throw new EOFException(); currentFloat = Float.intBitsToFloat(LazyBinaryUtils.byteArrayToInt(bytes, offset)); offset += 4; break;
case UNION: recordInfo.elementOffset = 4; recordInfo.elementSize = LazyBinaryUtils.byteArrayToInt(bytes, offset); break; default: {
case UNION: recordInfo.elementOffset = 4; recordInfo.elementSize = LazyBinaryUtils.byteArrayToInt(bytes, offset); break; default: {
case UNION: recordInfo.elementOffset = 4; recordInfo.elementSize = LazyBinaryUtils.byteArrayToInt(bytes, offset); break; default: {
case UNION: recordInfo.elementOffset = 4; recordInfo.elementSize = LazyBinaryUtils.byteArrayToInt(bytes, offset); break; default: {