Show / Hide Table of Contents

Class SimpleBSON

Inheritance
System.Object
SimpleBSON
Namespace: Eco.Shared.Serialization
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
Type Name Description
BSONObject obj
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
Type Name Description
BSONValue obj
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
Type Description
BSONValue

Load(MemoryStream)

Declaration
public static BSONObject Load(MemoryStream stream)
Parameters
Type Name Description
System.IO.MemoryStream stream
Returns
Type Description
BSONObject

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
Type Name Description
BSONValue value
Returns
Type Description
BSONValue
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾