View on GitHub

NativeBuffer Class

A buffer using the native malloc, realloc and free functions of the system.

Syntax

public class NativeBuffer : Buffer

Remarks

The NativeBuffer is faster when it has to grow or resize the buffer. But the data from the buffer has to be marshalled in the end, which can add a performance bottle neck. It is adviced to use the ClrBuffer with a decent preset size for maximum performance.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0

Members

See Also: Inherited members from Buffer.

Public Constructors

Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.
Documentation for this section has not yet been entered.

Public Properties

[read-only]
AllocatedSize IntPtr . Documentation for this section has not yet been entered. (Inherited from Buffer.)
[read-only]
Data IntPtr . Documentation for this section has not yet been entered. (Inherited from Buffer.)
Encoding System.Text.Encoding . Documentation for this section has not yet been entered. (Inherited from Buffer.)
NativeHandle IntPtr . Documentation for this section has not yet been entered. (Inherited from Buffer.)
Size IntPtr . Documentation for this section has not yet been entered. (Inherited from Buffer.)
[read-only]
UnitSize IntPtr . Documentation for this section has not yet been entered. (Inherited from Buffer.)

Public Methods

Dispose ()
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Finalize ()
Documentation for this section has not yet been entered. (Inherited from Buffer.)
GetBufferStream () : BufferStream
Documentation for this section has not yet been entered. (Inherited from Buffer.)
GetBytes () : byte[]
Documentation for this section has not yet been entered. (Inherited from Buffer.)
GetStream () : System.IO.Stream
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Grow (int)
Grow the buffer size. (Inherited from Buffer.)
Grow (long)
Grow the buffer size. (Inherited from Buffer.)
Grow (IntPtr)
Grow the buffer size. (Inherited from Buffer.)
Put (Buffer)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte[])
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (string)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte[], int)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte[], long)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte[], IntPtr)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (IntPtr, int)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (IntPtr, long)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (IntPtr, IntPtr)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (string, params object[])
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (System.Text.Encoding, string)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte[], int, int)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte[], long, long)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (byte[], IntPtr, IntPtr)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Put (System.Text.Encoding, string, params object[])
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Reset ()
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Slurp (int)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Slurp (long)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Slurp (IntPtr)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
override
ToString () : string
Documentation for this section has not yet been entered.

Protected Methods

override
Alloc (IntPtr)
Documentation for this section has not yet been entered.
abstract
Alloc (IntPtr)
Documentation for this section has not yet been entered. (Inherited from Buffer.)
Dispose (bool)
Documentation for this section has not yet been entered. (Inherited from Buffer.)

Member Details

NativeBuffer Constructor

Documentation for this section has not yet been entered.

Syntax

public NativeBuffer ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0

NativeBuffer Constructor

Documentation for this section has not yet been entered.

Syntax

public NativeBuffer (int size)

Parameters

size
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0

NativeBuffer Constructor

Documentation for this section has not yet been entered.

Syntax

public NativeBuffer (long size)

Parameters

size
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0

NativeBuffer Constructor

Documentation for this section has not yet been entered.

Syntax

public NativeBuffer (IntPtr size)

Parameters

size
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0

NativeBuffer Constructor

Documentation for this section has not yet been entered.

Syntax

public NativeBuffer (IntPtr size, bool alloc)

Parameters

size
Documentation for this section has not yet been entered.
alloc
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0

Alloc Method

Documentation for this section has not yet been entered.

Syntax

protected override void Alloc (IntPtr size)

Parameters

size
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0

ToString Method

Documentation for this section has not yet been entered.

Syntax

public override string ToString ()

Returns

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: Sundown
Assembly: SundownNet (in SundownNet.dll)
Assembly Versions: 1.15.12.0