| 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.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Winunp() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| final static int | getSINT16(ByteBuffer b) | ||||||||||
| final static long | getSINT32(ByteBuffer b) | ||||||||||
| final static int | getSINT8(ByteBuffer b) | ||||||||||
| final static int |
getUINT16(ByteBuffer b)
-1 is sign-extended
| ||||||||||
| final static long |
getUINT32(ByteBuffer b)
-1 is sign-extended
| ||||||||||
| final static int |
getUINT8(ByteBuffer b)
-1 is sign-extended
| ||||||||||
| static byte[] |
parseCString(ByteBuffer b)
Read until a 0-byte is encountered.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
-1 is sign-extended
-1 is sign-extended
-1 is sign-extended
Read until a 0-byte is encountered. Will throw if EOS is reached before a 0 is encountered.
| b | buffer |
|---|