Class AbstractBackedByteData
- java.lang.Object
-
- org.benf.cfr.reader.util.bytestream.AbstractBackedByteData
-
- All Implemented Interfaces:
ByteData
- Direct Known Subclasses:
BaseByteData
,OffsetBackedByteData
,OffsettingBackedByteData
public abstract class AbstractBackedByteData extends java.lang.Object implements ByteData
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]
d
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBackedByteData(byte[] data)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte[]
getBytesAt(int count, long offset)
double
getDoubleAt(long o)
float
getFloatAt(long o)
long
getLongAt(long o)
(package private) abstract int
getRealOffset(int offset)
byte
getS1At(long o)
short
getS2At(long o)
int
getS4At(long o)
short
getU1At(long o)
int
getU2At(long o)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.benf.cfr.reader.util.bytestream.ByteData
getOffsetData, getOffsettingOffsetData
-
-
-
-
Method Detail
-
getRealOffset
abstract int getRealOffset(int offset)
-
getS4At
public int getS4At(long o) throws ConfusedCFRException
- Specified by:
getS4At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getDoubleAt
public double getDoubleAt(long o) throws ConfusedCFRException
- Specified by:
getDoubleAt
in interfaceByteData
- Throws:
ConfusedCFRException
-
getFloatAt
public float getFloatAt(long o) throws ConfusedCFRException
- Specified by:
getFloatAt
in interfaceByteData
- Throws:
ConfusedCFRException
-
getLongAt
public long getLongAt(long o) throws ConfusedCFRException
- Specified by:
getLongAt
in interfaceByteData
- Throws:
ConfusedCFRException
-
getS2At
public short getS2At(long o) throws ConfusedCFRException
- Specified by:
getS2At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getU2At
public int getU2At(long o) throws ConfusedCFRException
- Specified by:
getU2At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getU1At
public short getU1At(long o) throws ConfusedCFRException
- Specified by:
getU1At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getBytesAt
public byte[] getBytesAt(int count, long offset)
- Specified by:
getBytesAt
in interfaceByteData
-
-