import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
-import org.eclipse.tracecompass.ctf.core.CTFReaderException;
+import org.eclipse.tracecompass.ctf.core.CTFException;
import org.eclipse.tracecompass.ctf.core.event.io.BitBuffer;
import org.eclipse.tracecompass.ctf.core.event.scope.IDefinitionScope;
@Override
public FloatDefinition createDefinition(@Nullable IDefinitionScope definitionScope,
- String fieldName, BitBuffer input) throws CTFReaderException {
+ String fieldName, BitBuffer input) throws CTFException {
ByteOrder byteOrder = input.getByteOrder();
input.setByteOrder(fByteOrder);
double value = read(input);
return "[declaration] float[" + Integer.toHexString(hashCode()) + ']'; //$NON-NLS-1$
}
- private double read(BitBuffer input) throws CTFReaderException {
+ private double read(BitBuffer input) throws CTFException {
/* Offset the buffer position wrt the current alignment */
alignRead(input);
final int exp = getExponent();
}
private static double readRawFloat32(BitBuffer input, final int manBits,
- final int expBits) throws CTFReaderException {
+ final int expBits) throws CTFException {
long temp = input.get(32, false);
return createFloat(temp, manBits - 1, expBits);
}
private static double readRawFloat64(BitBuffer input, final int manBits,
- final int expBits) throws CTFReaderException {
+ final int expBits) throws CTFException {
long temp = input.get(64, false);
return createFloat(temp, manBits - 1, expBits);
}