Class AbstractBackedByteData
java.lang.Object
org.benf.cfr.reader.util.bytestream.AbstractBackedByteData
- All Implemented Interfaces:
ByteData
- Direct Known Subclasses:
BaseByteData,OffsetBackedByteData,OffsettingBackedByteData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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, waitMethods inherited from interface org.benf.cfr.reader.util.bytestream.ByteData
getOffsetData, getOffsettingOffsetData
-
Field Details
-
d
protected final byte[] d
-
-
Constructor Details
-
AbstractBackedByteData
protected AbstractBackedByteData(byte[] data)
-
-
Method Details
-
getRealOffset
abstract int getRealOffset(int offset) -
getS4At
- Specified by:
getS4Atin interfaceByteData- Throws:
ConfusedCFRException
-
getDoubleAt
- Specified by:
getDoubleAtin interfaceByteData- Throws:
ConfusedCFRException
-
getFloatAt
- Specified by:
getFloatAtin interfaceByteData- Throws:
ConfusedCFRException
-
getLongAt
- Specified by:
getLongAtin interfaceByteData- Throws:
ConfusedCFRException
-
getS2At
- Specified by:
getS2Atin interfaceByteData- Throws:
ConfusedCFRException
-
getU2At
- Specified by:
getU2Atin interfaceByteData- Throws:
ConfusedCFRException
-
getU1At
- Specified by:
getU1Atin interfaceByteData- Throws:
ConfusedCFRException
-
getS1At
public byte getS1At(long o) -
getBytesAt
public byte[] getBytesAt(int count, long offset) - Specified by:
getBytesAtin interfaceByteData
-