# Class: 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: Winunp


## Static Method: getSINT16
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `int`

Description: Read a signed 16\-bit integer.
parameter: b: buffer
return: signed value

## Static Method: getSINT32
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `long`

Description: Read a signed 32\-bit integer.
parameter: b: buffer
return: signed value

## Static Method: getSINT8
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `int`

Description: Read a signed 8\-bit integer.
parameter: b: buffer
return: signed value

## Static Method: getUINT16
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `int`

Description: Read an unsigned 16\-bit integer. The value `-1` is sign\-extended.
parameter: b: buffer
return: unsigned value, or \-1

## Static Method: getUINT32
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `long`

Description: Read an unsigned 32\-bit integer. The value `-1` is sign\-extended.
parameter: b: buffer
return: unsigned value, or \-1

## Static Method: getUINT8
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `int`

Description: Read an unsigned 8\-bit integer. The value `-1` is sign\-extended.
parameter: b: buffer
return: unsigned value, or \-1

## Static Method: parseCString
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `byte[]`

Description: Read until a 0\-byte is encountered. Will throw if EOS is reached before a 0 is encountered.
parameter: b: buffer
return: the bytes read, excluding the trailing zero

