Method | Description | |
---|---|---|
Equals ( byte firstBuffer, int fi, byte secondBuffer, int si ) : bool |
Compare to object identifier byte sequences for equality.
|
|
FromHexString ( byte bs, int p ) : |
||
FromRaw ( byte buffer ) : |
||
FromRaw ( byte buffer, int offset ) : |
||
FromRaw ( int intbuffer ) : |
||
FromRaw ( int intbuffer, int offset ) : |
||
FromString ( byte bs, int offset ) : |
Convert an ObjectId from raw binary representation.
|
|
FromString ( string str ) : |
Convert an ObjectId from raw binary representation.
|
|
IsId ( string id ) : bool |
Test a string of characters to verify it is a hex format.
|
|
ObjectId ( AnyObjectId src ) : System | ||
ToObjectId ( ) : |
||
ToString ( |
Convert an ObjectId into a hex string representation.
|
Method | Description | |
---|---|---|
ObjectId ( ) : System | ||
ObjectId ( int w1, int w2, int w3, int w4, int w5 ) : System |
public static Equals ( byte firstBuffer, int fi, byte secondBuffer, int si ) : bool | ||
firstBuffer | byte | /// the first buffer to compare against. Must have at least 20 /// bytes from position ai through the end of the buffer. /// |
fi | int | /// first offset within firstBuffer to begin testing. /// |
secondBuffer | byte | /// the second buffer to compare against. Must have at least 2 /// bytes from position bi through the end of the buffer. /// |
si | int | /// first offset within secondBuffer to begin testing. /// |
return | bool |
public static FromHexString ( byte bs, int p ) : |
||
bs | byte | |
p | int | |
return |
public static FromRaw ( byte buffer ) : |
||
buffer | byte | |
return |
public static FromRaw ( byte buffer, int offset ) : |
||
buffer | byte | |
offset | int | |
return |
public static FromRaw ( int intbuffer ) : |
||
intbuffer | int | |
return |
public static FromRaw ( int intbuffer, int offset ) : |
||
intbuffer | int | |
offset | int | |
return |
public static FromString ( byte bs, int offset ) : |
||
bs | byte |
/// The raw byte buffer to read from. At least 20 bytes after |
offset | int | /// Position to read the first byte of data from. /// |
return |
public static FromString ( string str ) : |
||
str | string | /// The raw byte buffer to read from. At least 20 bytes must be /// available within this byte array. /// |
return |
public static IsId ( string id ) : bool | ||
id | string | the string to test. |
return | bool |
public static ToString ( |
||
i | The id to convert. May be null. | |
return | string |