Method | 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.
|
Method | 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.
|
Method | 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 | |
return |
public static Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions ) : |
||
stream | Stream | |
compatibilityOptions | PackerCompatibilityOptions | A |
return |
public static Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions, |
||
stream | Stream | |
compatibilityOptions | PackerCompatibilityOptions | A |
streamOptions | ||
return |
public static Create ( Stream stream, PackerCompatibilityOptions compatibilityOptions, bool ownsStream ) : |
||
stream | Stream | |
compatibilityOptions | PackerCompatibilityOptions | A |
ownsStream | bool |
/// |
return |
public static Create ( Stream stream, bool ownsStream ) : |
||
stream | Stream | |
ownsStream | bool |
/// |
return |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | If true, release managed resources too. |
return | void |
public FlushAsync ( |
||
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public Pack ( System.Boolean value ) : |
||
value | System.Boolean | Value to serialize. |
return |
public Pack ( Byte value ) : |
||
value | Byte | Value to serialize. |
return |
public Pack ( Double value ) : |
||
value | Double | Value to serialize. |
return |
public Pack ( |
||
value | Value to serialize. | |
return |
public Pack ( |
||
value | Value to serialize. | |
return |
public Pack ( System.Int64 value ) : |
||
value | System.Int64 | Value to serialize. |
return |
public Pack ( System.Single value ) : |
||
value | System.Single | Value to serialize. |
return |
public PackAsync ( System.Boolean value ) : Task | ||
value | System.Boolean | Value to serialize. |
return | Task |
public PackAsync ( System.Boolean value, |
||
value | System.Boolean | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( Byte value ) : Task | ||
value | Byte | Value to serialize. |
return | Task |
public PackAsync ( Byte value, |
||
value | Byte | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( Double value ) : Task | ||
value | Double | Value to serialize. |
return | Task |
public PackAsync ( Double value, |
||
value | Double | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( |
||
value | Value to serialize. | |
return | Task |
public PackAsync ( |
||
value | Value to serialize. | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( |
||
value | Value to serialize. | |
return | Task |
public PackAsync ( |
||
value | Value to serialize. | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( System.Int64 value ) : Task | ||
value | System.Int64 | Value to serialize. |
return | Task |
public PackAsync ( System.Int64 value, |
||
value | System.Int64 | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( System.Single value ) : Task | ||
value | System.Single | Value to serialize. |
return | Task |
public PackAsync ( System.Single value, |
||
value | System.Single | Value to serialize. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( bool value, |
||
value | bool | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackAsync ( byte value, |
||
value | byte | |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
public PackNullAsync ( |
||
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
protected Packer ( PackerCompatibilityOptions compatibilityOptions ) : System | ||
compatibilityOptions | PackerCompatibilityOptions | A |
return | System |
protected SeekTo ( long offset ) : void | ||
offset | long | Offset. You shoud not specify the value which causes underflow or overflow. |
return | void |
protected TryPackInt8 ( long value ) : bool | ||
value | long | Maybe |
return | bool |
protected TryPackInt8Async ( long value ) : Task |
||
value | long | Maybe |
return | Task |
protected TryPackInt8Async ( long value, |
||
value | long | Maybe |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
protected TryPackTinySignedInteger ( long value ) : bool | ||
value | long | Maybe tiny |
return | bool |
protected TryPackTinySignedIntegerAsync ( long value ) : Task |
||
value | long | Maybe tiny |
return | Task |
protected TryPackTinySignedIntegerAsync ( long value, |
||
value | long | Maybe tiny |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
protected abstract WriteByte ( byte value ) : void | ||
value | byte | A byte to be written. |
return | void |
protected WriteByteAsync ( byte value ) : Task | ||
value | byte | A byte to be written. |
return | Task |
protected WriteByteAsync ( byte value, |
||
value | byte | A byte to be written. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
protected WriteBytesAsync ( ICollection |
||
value | ICollection |
Collection of bytes to be written. |
return | Task |
protected WriteBytesAsync ( ICollection |
||
value | ICollection |
Collection of bytes to be written. |
cancellationToken | The token to monitor for cancellation requests. The default value is |
|
return | Task |
protected WriteBytesAsync ( byte value, bool isImmutable ) : Task | ||
value | byte | Bytes to be written. |
isImmutable | bool | If the |
return | 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 |
|
return | Task |