Méthode | Description | |
---|---|---|
Create ( Stream stream ) : |
Create standard Safe Packer instancde wrapping specified Stream with DefaultCompatibilityOptions. You can specify any derived Stream class like FileStream, MemoryStream, NetworkStream, UnmanagedMemoryStream, or so. |
|
Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions ) : |
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions. You can specify any derived Stream class like FileStream, MemoryStream, NetworkStream, UnmanagedMemoryStream, or so. |
|
Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions, |
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions. You can specify any derived Stream class like FileStream, MemoryStream, NetworkStream, UnmanagedMemoryStream, or so. |
|
Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions, bool ownsStream ) : |
Create standard Safe Packer instancde wrapping specified Stream with specified PackerCompatibilityOptions. You can specify any derived Stream class like FileStream, MemoryStream, NetworkStream, UnmanagedMemoryStream, or so. |
|
Create ( Stream stream, bool ownsStream ) : |
Create standard Safe Packer instancde wrapping specified Stream with DefaultCompatibilityOptions. You can specify any derived Stream class like FileStream, MemoryStream, NetworkStream, UnmanagedMemoryStream, or so. |
|
Dispose ( ) : void |
Clean up internal resources.
|
|
Flush ( ) : void |
Flushes internal buffer (including underlying stream).
|
|
FlushAsync ( ) : Task |
Flushes internal buffer (including underlying stream) asynchronously.
|
|
FlushAsync ( |
Flushes internal buffer (including underlying stream) asynchronously.
|
|
Pack ( System.Boolean value ) : |
Pack nullable Boolean value.
|
|
Pack ( Byte value ) : |
Pack nullable Byte value.
|
|
Pack ( Double value ) : |
Pack nullable Double value.
|
|
Pack ( |
Pack nullable Int16 value.
|
|
Pack ( |
Pack nullable Int32 value.
|
|
Pack ( System.Int64 value ) : |
Pack nullable Int64 value.
|
|
Pack ( System.Single value ) : |
Pack nullable Single value.
|
|
Pack ( bool value ) : |
Packs Boolean value to current stream.
|
|
Pack ( byte value ) : |
Packs Byte value to current stream.
|
|
PackAsync ( System.Boolean value ) : Task |
Pack nullable Boolean value asynchronously.
|
|
PackAsync ( System.Boolean value, |
Pack nullable Boolean value asynchronously.
|
|
PackAsync ( Byte value ) : Task |
Pack nullable Byte value asynchronously.
|
|
PackAsync ( Byte value, |
Pack nullable Byte value asynchronously.
|
|
PackAsync ( Double value ) : Task |
Pack nullable Double value asynchronously.
|
|
PackAsync ( Double value, |
Pack nullable Double value asynchronously.
|
|
PackAsync ( |
Pack nullable Int16 value asynchronously.
|
|
PackAsync ( |
Pack nullable Int16 value asynchronously.
|
|
PackAsync ( |
Pack nullable Int32 value asynchronously.
|
|
PackAsync ( |
Pack nullable Int32 value asynchronously.
|
|
PackAsync ( System.Int64 value ) : Task |
Pack nullable Int64 value asynchronously.
|
|
PackAsync ( System.Int64 value, |
Pack nullable Int64 value asynchronously.
|
|
PackAsync ( System.Single value ) : Task |
Pack nullable Single value asynchronously.
|
|
PackAsync ( System.Single value, |
Pack nullable Single value asynchronously.
|
|
PackAsync ( bool value ) : Task |
Packs Boolean value to current stream asynchronously.
|
|
PackAsync ( bool value, |
Packs Boolean value to current stream asynchronously.
|
|
PackAsync ( byte value ) : Task |
Packs Byte value to current stream asynchronously.
|
|
PackAsync ( byte value, |
Packs Byte value to current stream asynchronously.
|
|
PackNull ( ) : |
Packs a null value to current stream.
|
|
PackNullAsync ( ) : Task |
Packs a null value to current stream asynchronously.
|
|
PackNullAsync ( |
Packs a null value to current stream asynchronously.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
When overridden by derived class, release all unmanaged resources, optionally release managed resources.
|
|
Packer ( ) : System |
Initializes a new instance of the Packer class with DefaultCompatibilityOptions.
|
|
Packer ( PackerCompatibilityOptions compatibilityOptions ) : System |
Initializes a new instance of the Packer class with specified PackerCompatibilityOptions.
|
|
SeekTo ( long offset ) : void |
When overridden by derived class, change current position to specified offset.
|
|
TryPackInt8 ( long value ) : bool |
Try packs SByte value to current stream strictly.
|
|
TryPackInt8Async ( long value ) : Task |
Try packs SByte value to current stream strictly asynchronously.
|
|
TryPackInt8Async ( long value, |
Try packs SByte value to current stream strictly asynchronously.
|
|
TryPackTinySignedInteger ( long value ) : bool |
Try packs SByte value to current stream as tiny fix num.
|
|
TryPackTinySignedIntegerAsync ( long value ) : Task |
Try packs SByte value to current stream as tiny fix num asynchronously.
|
|
TryPackTinySignedIntegerAsync ( long value, |
Try packs SByte value to current stream as tiny fix num asynchronously.
|
|
WriteByte ( byte value ) : void |
When overridden by derived class, writes specified byte to stream using implementation specific manner.
|
|
WriteByteAsync ( byte value ) : Task |
When overridden by derived class, writes specified byte to stream using implementation specific manner asynchronously.
|
|
WriteByteAsync ( byte value, |
When overridden by derived class, writes specified byte to stream using implementation specific manner asynchronously.
|
|
WriteBytesAsync ( ICollection |
Writes specified bytes to stream using implementation specific most efficient manner asynchronously.
|
|
WriteBytesAsync ( ICollection |
Writes specified bytes to stream using implementation specific most efficient manner asynchronously.
|
|
WriteBytesAsync ( byte value, bool isImmutable ) : Task |
Writes specified bytes to stream using implementation specific most efficient manner asynchronously.
|
|
WriteBytesAsync ( byte value, bool isImmutable, |
Writes specified bytes to stream using implementation specific most efficient manner asynchronously.
|
Méthode | Description | |
---|---|---|
Pack ( SByte value ) : |
||
Pack ( |
||
Pack ( |
||
Pack ( System.UInt64 value ) : |
||
Pack ( sbyte value ) : |
||
PackAsync ( SByte value ) : Task | ||
PackAsync ( SByte value, |
||
PackAsync ( |
||
PackAsync ( |
||
PackAsync ( |
||
PackAsync ( |
||
PackAsync ( System.UInt64 value ) : Task | ||
PackAsync ( System.UInt64 value, |
||
PackAsync ( sbyte value ) : Task | ||
PackAsync ( sbyte value, |
||
PrivatePackAsyncCore ( bool value, |
||
PrivatePackAsyncCore ( byte value, |
||
PrivatePackAsyncCore ( sbyte value, |
||
PrivatePackCore ( bool value ) : void | ||
PrivatePackCore ( byte value ) : void | ||
PrivatePackCore ( sbyte value ) : void | ||
PrivatePackNullAsyncCore ( |
||
PrivatePackNullCore ( ) : void | ||
ThrowArgumentNullException ( string parameterName ) : void | ||
ThrowCannotBeNegativeException ( string parameterName ) : void | ||
ThrowExtTypeIsProhibitedException ( ) : void | ||
ThrowMissingBodyOfExtTypeValueException ( string parameterName ) : void | ||
ThrowObjectDisposedException ( ) : void | ||
TryPackTinyUnsignedInteger ( ulong value ) : bool | ||
TryPackTinyUnsignedIntegerAsync ( ulong value ) : Task |
||
TryPackTinyUnsignedIntegerAsync ( ulong value, |
||
TryPackUInt8 ( ulong value ) : bool | ||
TryPackUInt8Async ( ulong value ) : Task |
||
TryPackUInt8Async ( ulong value, |
||
VerifyNotDisposed ( ) : void | ||
WriteBytes ( ICollection |
||
WriteBytes ( byte value, bool isImmutable ) : void |
public static Create ( Stream stream ) : |
||
stream | Stream | |
Résultat |
public static Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions ) : |
||
stream | Stream | |
compatibilityOptions | PackerCompatibilityOptions | A |
Résultat |
public static Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions, |
||
stream | Stream | |
compatibilityOptions | PackerCompatibilityOptions | A |
streamOptions | ||
Résultat |
public static Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions, bool ownsStream ) : |
||
stream | Stream | |
compatibilityOptions | PackerCompatibilityOptions | A |
ownsStream | bool |
/// |
Résultat |
public static Create ( Stream stream, bool ownsStream ) : |
||
stream | Stream | |
ownsStream | bool |
/// |
Résultat |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | If true, release managed resources too. |
Résultat | void |
public FlushAsync ( |
||
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public Pack ( System.Boolean value ) : |
||
value | System.Boolean | Value to serialize. |
Résultat |
public Pack ( Byte value ) : |
||
value | Byte | Value to serialize. |
Résultat |
public Pack ( Double value ) : |
||
value | Double | Value to serialize. |
Résultat |
public Pack ( |
||
value | Value to serialize. | |
Résultat |
public Pack ( |
||
value | Value to serialize. | |
Résultat |
public Pack ( System.Int64 value ) : |
||
value | System.Int64 | Value to serialize. |
Résultat |
public Pack ( System.Single value ) : |
||
value | System.Single | Value to serialize. |
Résultat |
public PackAsync ( System.Boolean value ) : Task | ||
value | System.Boolean | Value to serialize. |
Résultat | Task |
public PackAsync ( System.Boolean value, |
||
value | System.Boolean | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( Byte value ) : Task | ||
value | Byte | Value to serialize. |
Résultat | Task |
public PackAsync ( Byte value, |
||
value | Byte | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( Double value ) : Task | ||
value | Double | Value to serialize. |
Résultat | Task |
public PackAsync ( Double value, |
||
value | Double | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( |
||
value | Value to serialize. | |
Résultat | Task |
public PackAsync ( |
||
value | Value to serialize. | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( |
||
value | Value to serialize. | |
Résultat | Task |
public PackAsync ( |
||
value | Value to serialize. | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( System.Int64 value ) : Task | ||
value | System.Int64 | Value to serialize. |
Résultat | Task |
public PackAsync ( System.Int64 value, |
||
value | System.Int64 | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( System.Single value ) : Task | ||
value | System.Single | Value to serialize. |
Résultat | Task |
public PackAsync ( System.Single value, |
||
value | System.Single | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( bool value, |
||
value | bool | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackAsync ( byte value, |
||
value | byte | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
public PackNullAsync ( |
||
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
protected Packer ( PackerCompatibilityOptions compatibilityOptions ) : System | ||
compatibilityOptions | PackerCompatibilityOptions | A |
Résultat | System |
protected SeekTo ( long offset ) : void | ||
offset | long | Offset. You shoud not specify the value which causes underflow or overflow. |
Résultat | void |
protected TryPackInt8 ( long value ) : bool | ||
value | long | Maybe |
Résultat | bool |
protected TryPackInt8Async ( long value ) : Task |
||
value | long | Maybe |
Résultat | Task |
protected TryPackInt8Async ( long value, |
||
value | long | Maybe |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
protected TryPackTinySignedInteger ( long value ) : bool | ||
value | long | Maybe tiny |
Résultat | bool |
protected TryPackTinySignedIntegerAsync ( long value ) : Task |
||
value | long | Maybe tiny |
Résultat | Task |
protected TryPackTinySignedIntegerAsync ( long value, |
||
value | long | Maybe tiny |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
protected abstract WriteByte ( byte value ) : void | ||
value | byte | A byte to be written. |
Résultat | void |
protected WriteByteAsync ( byte value ) : Task | ||
value | byte | A byte to be written. |
Résultat | Task |
protected WriteByteAsync ( byte value, |
||
value | byte | A byte to be written. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
protected WriteBytesAsync ( ICollection |
||
value | ICollection |
Collection of bytes to be written. |
Résultat | Task |
protected WriteBytesAsync ( ICollection |
||
value | ICollection |
Collection of bytes to be written. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |
protected WriteBytesAsync ( byte value, bool isImmutable ) : Task | ||
value | byte | Bytes to be written. |
isImmutable | bool | If the |
Résultat | Task |
protected WriteBytesAsync ( byte value, bool isImmutable, |
||
value | byte | Bytes to be written. |
isImmutable | bool | If the |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
Résultat | Task |