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 protectedAbstractBackedByteData(byte[] data)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte[]getBytesAt(int count, long offset)doublegetDoubleAt(long o)floatgetFloatAt(long o)longgetLongAt(long o)(package private) abstract intgetRealOffset(int offset)bytegetS1At(long o)shortgetS2At(long o)intgetS4At(long o)shortgetU1At(long o)intgetU2At(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:
getS4Atin interfaceByteData- Throws:
ConfusedCFRException
-
getDoubleAt
public double getDoubleAt(long o) throws ConfusedCFRException- Specified by:
getDoubleAtin interfaceByteData- Throws:
ConfusedCFRException
-
getFloatAt
public float getFloatAt(long o) throws ConfusedCFRException- Specified by:
getFloatAtin interfaceByteData- Throws:
ConfusedCFRException
-
getLongAt
public long getLongAt(long o) throws ConfusedCFRException- Specified by:
getLongAtin interfaceByteData- Throws:
ConfusedCFRException
-
getS2At
public short getS2At(long o) throws ConfusedCFRException- Specified by:
getS2Atin interfaceByteData- Throws:
ConfusedCFRException
-
getU2At
public int getU2At(long o) throws ConfusedCFRException- Specified by:
getU2Atin interfaceByteData- Throws:
ConfusedCFRException
-
getU1At
public short getU1At(long o) throws ConfusedCFRException- Specified by:
getU1Atin interfaceByteData- Throws:
ConfusedCFRException
-
getBytesAt
public byte[] getBytesAt(int count, long offset)- Specified by:
getBytesAtin interfaceByteData
-
-