C# Class BTDB.EventStore2Layer.EventSerializer

Inheritance: IEventSerializer, ITypeDescriptorCallbacks, IDescriptorSerializerLiteContext, ITypeDescriptorFactory, ITypeBinarySerializerContext
Datei anzeigen Open project: Bobris/BTDB Class Usage Examples

Public Methods

Method Description
Create ( Type type ) : ITypeDescriptor
DescriptorOf ( Type type ) : ITypeDescriptor
DescriptorOf ( object obj ) : ITypeDescriptor
EventSerializer ( ITypeNameMapper typeNameMapper = null, ITypeConvertorGenerator typeConvertorGenerator = null ) : System
IsSafeToLoad ( Type type ) : bool
LoadAsType ( ITypeDescriptor descriptor ) : Type
LoadAsType ( ITypeDescriptor descriptor, Type targetType ) : Type
ProcessMetadataLog ( ByteBuffer buffer ) : void
Serialize ( bool &hasMetaData, object obj ) : ByteBuffer
StoreDescriptor ( ITypeDescriptor descriptor, AbstractBufferedWriter writer ) : void
StoreNewDescriptors ( object obj ) : void
StoreObject ( object obj ) : void

Private Methods

Method Description
BuildComplexSaver ( ITypeDescriptor descriptor ) : Action
BuildNestedObjGatherer ( ITypeDescriptor descriptor, Type type ) : IDescriptorSerializerLiteContext>.Action
MergeDescriptor ( ITypeDescriptor origDesc ) : ITypeDescriptor
MergeTypesByShapeAndStoreNew ( ) : bool
NestedDescriptorReader ( AbstractBufferedReader reader ) : ITypeDescriptor

Method Details

Create() public method

public Create ( Type type ) : ITypeDescriptor
type System.Type
return ITypeDescriptor

DescriptorOf() public method

public DescriptorOf ( Type type ) : ITypeDescriptor
type System.Type
return ITypeDescriptor

DescriptorOf() public method

public DescriptorOf ( object obj ) : ITypeDescriptor
obj object
return ITypeDescriptor

EventSerializer() public method

public EventSerializer ( ITypeNameMapper typeNameMapper = null, ITypeConvertorGenerator typeConvertorGenerator = null ) : System
typeNameMapper ITypeNameMapper
typeConvertorGenerator ITypeConvertorGenerator
return System

IsSafeToLoad() public method

public IsSafeToLoad ( Type type ) : bool
type System.Type
return bool

LoadAsType() public method

public LoadAsType ( ITypeDescriptor descriptor ) : Type
descriptor ITypeDescriptor
return System.Type

LoadAsType() public method

public LoadAsType ( ITypeDescriptor descriptor, Type targetType ) : Type
descriptor ITypeDescriptor
targetType System.Type
return System.Type

ProcessMetadataLog() public method

public ProcessMetadataLog ( ByteBuffer buffer ) : void
buffer ByteBuffer
return void

Serialize() public method

public Serialize ( bool &hasMetaData, object obj ) : ByteBuffer
hasMetaData bool
obj object
return ByteBuffer

StoreDescriptor() public method

public StoreDescriptor ( ITypeDescriptor descriptor, AbstractBufferedWriter writer ) : void
descriptor ITypeDescriptor
writer BTDB.StreamLayer.AbstractBufferedWriter
return void

StoreNewDescriptors() public method

public StoreNewDescriptors ( object obj ) : void
obj object
return void

StoreObject() public method

public StoreObject ( object obj ) : void
obj object
return void