Show / Hide Table of Contents

Class BlobController

The whole point of this class is to avoid sending same heavy data. Currently its used to avoid sending repeated strings and LocStrings that are ofter sent several times. Instead of sending same string again and again, it will save it as a byte[] and send just an id of that byte array. This way there are will be no need to send same data twice.

Inheritance
System.Object
BlobController
Namespace: Eco.Core.Controller
Assembly: Eco.Core.dll
Syntax
public static class BlobController : Object

Methods

GetBlob(Int32)

Declaration
public static byte[] GetBlob(int id)
Parameters
Type Name Description
System.Int32 id
Returns
Type Description
System.Byte[]

TryGetOrCreateBlob(in BsonSerializationContext, Object, out Int32)

Declaration
public static bool TryGetOrCreateBlob(in BsonSerializationContext context, object value, out int blobId)
Parameters
Type Name Description
BsonSerializationContext context
System.Object value
System.Int32 blobId
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾