Table of Contents

Method Unpack

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Unpack(byte[], out int, out int, out short, out int)

Unpacks a byte array into the components of an ObjectId.

[Obsolete("This method will be removed in a later release.")]
public static void Unpack(byte[] bytes, out int timestamp, out int machine, out short pid, out int increment)

Parameters

bytes byte[]

A byte array.

timestamp int

The timestamp.

machine int

The machine hash.

pid short

The PID.

increment int

The increment.