public class

Winunp

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.wincommon.Winunp

Class Overview

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.

Summary

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

Public Constructors

public Winunp ()

Public Methods

public static final int getSINT16 (ByteBuffer b)

public static final long getSINT32 (ByteBuffer b)

public static final int getSINT8 (ByteBuffer b)

public static final int getUINT16 (ByteBuffer b)

-1 is sign-extended

public static final long getUINT32 (ByteBuffer b)

-1 is sign-extended

public static final int getUINT8 (ByteBuffer b)

-1 is sign-extended

public static byte[] parseCString (ByteBuffer b)

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