Class Winunp
java.lang.Object
com.pnfsoftware.jeb.core.units.code.wincommon.Winunp
Bytes unpacking and primitives reading routines with quirks and specificities related to
Microsoft file formats. All provided buffers are assumed to be set little-endian.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final intstatic final longstatic final intstatic final int-1 is sign-extendedstatic final long-1 is sign-extendedstatic final int-1 is sign-extendedstatic byte[]Read until a 0-byte is encountered.
-
Constructor Details
-
Winunp
public Winunp()
-
-
Method Details
-
getSINT8
-
getSINT16
-
getSINT32
-
getUINT8
-1 is sign-extended -
getUINT16
-1 is sign-extended -
getUINT32
-1 is sign-extended -
parseCString
Read until a 0-byte is encountered. Will throw if EOS is reached before a 0 is encountered.- Parameters:
b- buffer- Returns:
- the bytes read, excluding the trailing zero
-