Class SlimFormat
A format that writes into binary files in an efficient way using variable-length integers, strings and meta handles.
Developers may derive new formats that support custom serialization of their business-related types. This may increase performance dramatically.
For example, in a drawing application a new format may derive from SlimFormat to natively serialize Point and PolarPoint structs to yield faster serialization times.
Azos.Serialization.Slim.SlimSlimSerializer is capable of SlimFormat-derived format injection, in which case it will automatically discover new types that are directly supported
by the format.
Inheritance
System.Object
SlimFormat
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.dll
public class SlimFormat : StreamerFormat<SlimReader, SlimWriter>
Constructors
Declaration
Fields
Declaration
public const int MAX_BYTE_ARRAY_LEN = 536870912
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MAX_DECIMAL_ARRAY_LEN = 41297762
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MAX_DOUBLE_ARRAY_LEN = 67108864
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MAX_FLOAT_ARRAY_LEN = 134217728
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MAX_INT_ARRAY_LEN = 134217728
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MAX_LONG_ARRAY_LEN = 67108864
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MAX_STR_LEN = 32752
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int MAX_STRING_ARRAY_CNT = 11184810
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public const int STR_BUF_SZ = 98304
Field Value
Type |
Description |
System.Int32 |
|
Properties
Returns a singleton format instance
Declaration
public static SlimFormat Instance { get; }
Property Value
Declaration
public override Type ReaderType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
Declaration
public override Type WriterType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
Methods
MakeReadingStreamer(Encoding)
Declaration
public override SlimReader MakeReadingStreamer(Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
encoding |
|
Returns
Overrides
Azos.IO.StreamerFormat<Azos.IO.SlimReader, Azos.IO.SlimWriter>.MakeReadingStreamer(System.Text.Encoding)
MakeWritingStreamer(Encoding)
Declaration
public override SlimWriter MakeWritingStreamer(Encoding encoding = null)
Parameters
Type |
Name |
Description |
System.Text.Encoding |
encoding |
|
Returns
Overrides
Azos.IO.StreamerFormat<Azos.IO.SlimReader, Azos.IO.SlimWriter>.MakeWritingStreamer(System.Text.Encoding)
Extension Methods