Class SimpleBSON
Inheritance
System.Object
SimpleBSON
Assembly: Eco.Shared.dll
Syntax
public static class SimpleBSON : Object
Properties
RecordEncoding
Declaration
public static Action<BSONValue, double, int> RecordEncoding { get; set; }
Property Value
Type |
Description |
System.Action<BSONValue, System.Double, System.Int32> |
|
Methods
Dump(BSONObject)
Declaration
public static byte[] Dump(BSONObject obj)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
DumpTo(MemoryStream, BSONArray)
Dumps BSON array to memory stream.
Declaration
public static void DumpTo(MemoryStream ms, BSONArray array)
Parameters
Type |
Name |
Description |
System.IO.MemoryStream |
ms |
|
BSONArray |
array |
|
DumpTo(MemoryStream, BSONObject)
Declaration
public static void DumpTo(MemoryStream ms, BSONObject obj)
Parameters
Type |
Name |
Description |
System.IO.MemoryStream |
ms |
|
BSONObject |
obj |
|
DumpValue(BSONValue)
Declaration
public static byte[] DumpValue(BSONValue obj)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
EncodeString(MemoryStream, String)
Declaration
public static void EncodeString(MemoryStream stream, string v)
Parameters
Type |
Name |
Description |
System.IO.MemoryStream |
stream |
|
System.String |
v |
|
FromByteSpan(Span<Byte>)
Declaration
public static BSONValue FromByteSpan(Span<byte> span)
Parameters
Type |
Name |
Description |
System.Span<System.Byte> |
span |
|
Returns
Load(MemoryStream)
Declaration
public static BSONObject Load(MemoryStream stream)
Parameters
Type |
Name |
Description |
System.IO.MemoryStream |
stream |
|
Returns
WithStatsRecording(BSONValue)
Adds stats recording to value
. Returns another BSONValue object which wraps value
with stats recording loogic.
Declaration
public static BSONValue WithStatsRecording(this BSONValue value)
Parameters
Returns