Table of Contents

Method Pack

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

Pack(int, int, short, int)

Packs the components of an ObjectId into a byte array.

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

Parameters

timestamp int

The timestamp.

machine int

The machine hash.

pid short

The PID.

increment int

The increment.

Returns

byte[]

A byte array.