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) 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
-
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:
getS4At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getDoubleAt
- Specified by:
getDoubleAt
in interfaceByteData
- Throws:
ConfusedCFRException
-
getFloatAt
- Specified by:
getFloatAt
in interfaceByteData
- Throws:
ConfusedCFRException
-
getLongAt
- Specified by:
getLongAt
in interfaceByteData
- Throws:
ConfusedCFRException
-
getS2At
- Specified by:
getS2At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getU2At
- Specified by:
getU2At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getU1At
- Specified by:
getU1At
in interfaceByteData
- Throws:
ConfusedCFRException
-
getS1At
public byte getS1At(long o) -
getBytesAt
public byte[] getBytesAt(int count, long offset) - Specified by:
getBytesAt
in interfaceByteData
-