DataMember.DecodeToArray Method |
Used by code generator for reading objects.
Namespace:
VelocityDb.TypeInfo
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntaxpublic static Object DecodeToArray(
byte[] memberBytes,
Type type,
ref int offset,
IOptimizedPersistable o,
Page page,
bool useOidShort,
bool openRefs,
Schema schema,
SessionBase session,
List<IOptimizedPersistable> toLoadMembers,
int graphDepth,
int graphDepthToLoad,
bool primitivesOnly,
bool embed
)
Public Shared Function DecodeToArray (
memberBytes As Byte(),
type As Type,
ByRef offset As Integer,
o As IOptimizedPersistable,
page As Page,
useOidShort As Boolean,
openRefs As Boolean,
schema As Schema,
session As SessionBase,
toLoadMembers As List(Of IOptimizedPersistable),
graphDepth As Integer,
graphDepthToLoad As Integer,
primitivesOnly As Boolean,
embed As Boolean
) As Object
public:
static Object^ DecodeToArray(
array<unsigned char>^ memberBytes,
Type^ type,
int% offset,
IOptimizedPersistable^ o,
Page^ page,
bool useOidShort,
bool openRefs,
Schema^ schema,
SessionBase^ session,
List<IOptimizedPersistable^>^ toLoadMembers,
int graphDepth,
int graphDepthToLoad,
bool primitivesOnly,
bool embed
)
static member DecodeToArray :
memberBytes : byte[] *
type : Type *
offset : int byref *
o : IOptimizedPersistable *
page : Page *
useOidShort : bool *
openRefs : bool *
schema : Schema *
session : SessionBase *
toLoadMembers : List<IOptimizedPersistable> *
graphDepth : int *
graphDepthToLoad : int *
primitivesOnly : bool *
embed : bool -> Object
Parameters
- memberBytes
- Type:System.Byte[]
Bytes of the object to be read - type
- Type: System.Type
The Type of the array. - offset
- Type: System.Int32
Current offset into array of bytes - o
- Type: VelocityDb.IOptimizedPersistable
Object containing the array - page
- Type: VelocityDb.Page
The Page that the array belongs to. - useOidShort
- Type: System.Boolean
Use short id (page-slot) for object references - openRefs
- Type: System.Boolean
Open referenced objects? - schema
- Type: VelocityDb.TypeInfo.Schema
The active Schema - session
- Type: VelocityDb.Session.SessionBase
The active session to use - toLoadMembers
- Type: System.Collections.Generic.List<IOptimizedPersistable>
Keeps track of fields to load - graphDepth
- Type: System.Int32
Current graph depth - graphDepthToLoad
- Type: System.Int32
How many levels to load - primitivesOnly
- Type: System.Boolean
Load only primitive fields> - embed
- Type: System.Boolean
[Missing <param name="embed"/> documentation for "M:VelocityDb.TypeInfo.DataMember.DecodeToArray(System.Byte[],System.Type,System.Int32@,VelocityDb.IOptimizedPersistable,VelocityDb.Page,System.Boolean,System.Boolean,VelocityDb.TypeInfo.Schema,VelocityDb.Session.SessionBase,System.Collections.Generic.List{VelocityDb.IOptimizedPersistable},System.Int32,System.Int32,System.Boolean,System.Boolean)"]
Return Value
Type:
ObjectThe decoded array
See Also