# Class: com.pnfsoftware.jeb.core.units.code.wincommon.Guid

GUID \- 128\-bit UUID objects. Default rendering performs Microsoft\-style decoding by default.

## Constructor: Guid
- parameter: `data`, type: `byte[]`
- parameter: `offset`, type: `int`

Description: Create a GUID from a 16\-byte slice.
parameter: data: source bytes
parameter: offset: offset of the first GUID byte

## Constructor: Guid
- parameter: `data`, type: `byte[]`

Description: Create a GUID from the first 16 bytes of an array.
parameter: data: source bytes

## Constructor: Guid
- parameter: `data`, type: `byte[]`
- parameter: `nocopy`, type: `boolean`

Description: Create a GUID from a byte array.
parameter: data: source bytes
parameter: nocopy: true to keep `data` as the backing array; false to copy the first 16 bytes

## Method: equals
- parameter: `obj`, type: `java.lang.Object`
- return type: `boolean`


## Method: hashCode
- return type: `int`


## Method: toString
- return type: `java.lang.String`

Description: Microsoft\-style decoding.

## Method: toString
- parameter: `microsoftStyleDecoding`, type: `boolean`
- parameter: `useSeparators`, type: `boolean`
- parameter: `useBrackets`, type: `boolean`
- return type: `java.lang.String`

Description: Format this GUID.
parameter: microsoftStyleDecoding: true to decode the first fields as little\-endian values
parameter: useSeparators: true to insert dash separators
parameter: useBrackets: true to wrap the text in braces
return: the formatted GUID

## Static Method: parse
- parameter: `b`, type: `java.nio.ByteBuffer`
- return type: `com.pnfsoftware.jeb.core.units.code.wincommon.Guid`

Description: Parse a GUID from a byte buffer.
parameter: b: buffer positioned at the GUID bytes
return: a GUID object

## Static Method: parse
- parameter: `s`, type: `java.lang.String`
- parameter: `microsoftStyleEncoding`, type: `boolean`
- return type: `com.pnfsoftware.jeb.core.units.code.wincommon.Guid`

Description: Parse a GUID string.
parameter: s: GUID string, with optional dashes and braces
parameter: microsoftStyleEncoding: true if the text uses Microsoft's mixed\-endian field encoding
return: a GUID object

## Static Method: random
- return type: `com.pnfsoftware.jeb.core.units.code.wincommon.Guid`

Description: Generate a random GUID.
return: a random GUID object

