Unit BGRADNetDeserial

Description

Read .Net serialized classes

Serialization is a process by which objects in memory are saved according to their structure. The .Net classes are saved with BinaryFormatter of namespace System.Runtime.Serialization.Formatters.Binary.

This unit is used by BGRAPaintNet to read Paint.NET images.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Record TAssemblyReference Reference to a .NET assembly
Class TCustomSerializedObject Abstract class for a serialized .NET object
Class TDotNetDeserialization Deseralize .NET objets from a stream
Record TFieldType Description of a .NET field
Class TSerializedArray Information about a serialized .NET array
Class TSerializedClass Information about a serialized .NET class
Record TSerializedType Description of a .NET type
Class TSerializedValue Information about a serialized .NET value

Functions and Procedures

function WinReadByte(stream: TStream): byte;
function WinReadInt64(Stream: TStream): int64;
function WinReadLongint(Stream: TStream): longint;
function WinReadLongword(Stream: TStream): LongWord;
function WinReadQWord(Stream: TStream): QWord;
function WinReadSmallInt(Stream: TStream): smallint;
function WinReadWord(Stream: TStream): word;

Types

arrayOfLongword = array of LongWord;
ArrayOfNameValue = array of record Name: string; Value, valueType: string; end;
TGenericArrayType = (...);
TPrimitiveType = (...);
TTypeCategory = (...);

Description

Functions and Procedures

function WinReadByte(stream: TStream): byte;

This item has no description.

function WinReadInt64(Stream: TStream): int64;

This item has no description.

function WinReadLongint(Stream: TStream): longint;

This item has no description.

function WinReadLongword(Stream: TStream): LongWord;

This item has no description.

function WinReadQWord(Stream: TStream): QWord;

This item has no description.

function WinReadSmallInt(Stream: TStream): smallint;

This item has no description.

function WinReadWord(Stream: TStream): word;

This item has no description.

Types

arrayOfLongword = array of LongWord;

This item has no description.

ArrayOfNameValue = array of record Name: string; Value, valueType: string; end;

Array of name and values

TGenericArrayType = (...);

This item has no description.

Values
  • gatSingleDimension
  • gatJagged
  • gatMultidimensional
TPrimitiveType = (...);

This item has no description.

Values
  • ptNone = 0
  • ptBoolean = 1
  • ptByte = 2
  • ptChar = 3
  • ptDecimal = 5
  • ptDouble = 6
  • ptInt16 = 7
  • ptInt32 = 8
  • ptInt64 = 9
  • ptSByte = 10
  • ptSingle = 11
  • ptDateTime = 13
  • ptUInt16 = 14
  • ptUInt32 = 15
  • ptUInt64 = 16
  • ptString = 18
TTypeCategory = (...);

This item has no description.

Values
  • ftPrimitiveType = 0
  • ftString = 1
  • ftObjectType = 2
  • ftRuntimeType = 3
  • ftGenericType = 4
  • ftArrayOfObject = 5
  • ftArrayOfString = 6
  • ftArrayOfPrimitiveType = 7