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
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
Returns
Type |
Description |
System.Boolean |
|