Class BaseComposite
Represents the composite field, which sub-fields can be accessed by name or index.
Inheritance
System.Object
BaseComposite
Implements
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public abstract class BaseComposite : object, IComposite
Properties
Buffer
Underlying buffer.
Declaration
protected MemoryPointer<byte> Buffer { get; set; }
Property Value
Type | Description |
---|---|
MemoryPointer<System.Byte> |
HasValue
True, if underlying buffer has a value.
Declaration
public abstract bool HasValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[String]
Gets or sets value of the subfield.
Declaration
public abstract object this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the subfield. |
Property Value
Type | Description |
---|---|
System.Object | Value of the subfield. |
Methods
Reset()
Reset field to null value.
Declaration
public abstract void Reset()
Wrap(MemoryPointer<Byte>)
Wraps object around the buffer.
Declaration
public virtual void Wrap(MemoryPointer<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
MemoryPointer<System.Byte> | buffer | Buffer which contains composite data. |