MemChunk MembersNFX Class Library

[This is preliminary documentation and is subject to change.]

The MemChunk type exposes the following members.
Constructors

  NameDescription
Public methodMemChunk
Initializes a new instance of the MemChunk class
Back to Top
Methods

  NameDescription
Public methodOnlineBeginRead
Begins an asynchronous read operation. (Consider using ReadAsync( Byte , Int32, Int32) instead; see the Remarks section.)
(Inherited from OnlineStream.)
Public methodOnlineBeginWrite
Begins an asynchronous write operation. (Consider using WriteAsync( Byte , Int32, Int32) instead; see the Remarks section.)
(Inherited from OnlineStream.)
Public methodOnlineClose
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed.
(Inherited from OnlineStream.)
Public methodOnlineCopyTo(Stream)
Reads the bytes from the current stream and writes them to another stream.
(Inherited from OnlineStream.)
Public methodOnlineCopyTo(Stream, Int32)
Reads the bytes from the current stream and writes them to another stream, using a specified buffer size.
(Inherited from OnlineStream.)
Public methodCopyToAsync(Stream)
Asynchronously reads the bytes from the current stream and writes them to another stream.
(Inherited from OnlineStream.)
Public methodCopyToAsync(Stream, Int32)
Asynchronously reads the bytes from the current stream and writes them to another stream, using a specified buffer size.
(Inherited from OnlineStream.)
Public methodCopyToAsync(Stream, Int32, CancellationToken)
Asynchronously reads all the bytes from the current stream and writes them to another stream, using a specified buffer size and cancellation token.
(Inherited from OnlineMemoryStream.)
Public methodOnlineCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnlineCreateWaitHandleObsolete.
Allocates a OnlineWaitHandle object.
(Inherited from OnlineStream.)
Public methodOnlineDispose 
Releases all resources used by the OnlineStream.
(Inherited from OnlineStream.)
Protected methodOnlineDispose(Boolean)
Releases the unmanaged resources used by the OnlineMemoryStream class and optionally releases the managed resources.
(Inherited from OnlineMemoryStream.)
Public methodOnlineEndRead
Waits for the pending asynchronous read to complete. (Consider using ReadAsync( Byte , Int32, Int32) instead; see the Remarks section.)
(Inherited from OnlineStream.)
Public methodOnlineEndWrite
Ends an asynchronous write operation. (Consider using WriteAsync( Byte , Int32, Int32) instead; see the Remarks section.)
(Inherited from OnlineStream.)
Public methodOnlineEquals
Determines whether the specified object is equal to the current object.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineFlush (Inherited from OnlineMemoryStream.)
Public methodFlushAsync 
Asynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device.
(Inherited from OnlineStream.)
Public methodFlushAsync(CancellationToken)
Asynchronously clears all buffers for this stream, and monitors cancellation requests.
(Inherited from OnlineMemoryStream.)
Public methodOnlineGetBuffer
Returns the array of unsigned bytes from which this stream was created.
(Inherited from OnlineMemoryStream.)
Public methodOnlineGetHashCode
Serves as the default hash function.
(Inherited from OnlineObject.)
Public methodOnlineGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodOnlineInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnlineMemberwiseClone 
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone(Boolean)
Creates a shallow copy of the current OnlineMarshalByRefObject object.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnlineObjectInvariantObsolete.
Provides support for a Contract.
(Inherited from OnlineStream.)
Public methodOnlineRead
Reads a block of bytes from the current stream and writes the data to a buffer.
(Inherited from OnlineMemoryStream.)
Public methodReadAsync( Byte , Int32, Int32)
Asynchronously reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
(Inherited from OnlineStream.)
Public methodReadAsync( Byte , Int32, Int32, CancellationToken)
Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.
(Inherited from OnlineMemoryStream.)
Public methodOnlineReadByte
Reads a byte from the current stream.
(Inherited from OnlineMemoryStream.)
Public methodOnlineSeek
Sets the position within the current stream to the specified value.
(Inherited from OnlineMemoryStream.)
Public methodOnlineSetLength
Sets the length of the current stream to the specified value.
(Inherited from OnlineMemoryStream.)
Public methodOnlineToArray
Writes the stream contents to a byte array, regardless of the OnlinePosition property.
(Inherited from OnlineMemoryStream.)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodOnlineWrite
Writes a block of bytes to the current stream using data read from a buffer.
(Inherited from OnlineMemoryStream.)
Public methodWriteAsync( Byte , Int32, Int32)
Asynchronously writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
(Inherited from OnlineStream.)
Public methodWriteAsync( Byte , Int32, Int32, CancellationToken)
Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.
(Inherited from OnlineMemoryStream.)
Public methodOnlineWriteByte
Writes a byte to the current stream at the current position.
(Inherited from OnlineMemoryStream.)
Public methodOnlineWriteTo
Writes the entire contents of this memory stream to another stream.
(Inherited from OnlineMemoryStream.)
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsBool (Defined by ObjectValueConversion.)
Public Extension MethodAsByte (Defined by ObjectValueConversion.)
Public Extension MethodAsChar (Defined by ObjectValueConversion.)
Public Extension MethodAsCharEnumerable (Defined by IOMiscUtils.)
Public Extension MethodAsDateTime Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDateTime(DateTime, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDID(GDID, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGDIDSymbol(GDIDSymbol, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsInt (Defined by ObjectValueConversion.)
Public Extension MethodAsJSONConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLaconicConfig (Defined by ObjectValueConversion.)
Public Extension MethodAsLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNonNullOrEmptyString (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableBool (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableChar (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDateTime (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDecimal (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableDouble (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableEnum TEnum  (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableFloat (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGDIDSymbol (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableGUID (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableLong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableShort (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableTimeSpan (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableULong (Defined by ObjectValueConversion.)
Public Extension MethodAsNullableUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsSByte (Defined by ObjectValueConversion.)
Public Extension MethodAsShort (Defined by ObjectValueConversion.)
Public Extension MethodAsString (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsTimeSpan(TimeSpan, ConvertErrorHandling)Overloaded. (Defined by ObjectValueConversion.)
Public Extension MethodAsUInt (Defined by ObjectValueConversion.)
Public Extension MethodAsULong (Defined by ObjectValueConversion.)
Public Extension MethodAsUri (Defined by ObjectValueConversion.)
Public Extension MethodAsUShort (Defined by ObjectValueConversion.)
Public Extension MethodAsXMLConfig (Defined by ObjectValueConversion.)
Public Extension MethodJSONToDataObject
Deserializes JSON content into IJSONDataObject
(Defined by JSONExtensions.)
Public Extension MethodJSONToDynamic
Deserializes JSON content into dynamic JSON object
(Defined by JSONExtensions.)
Public Extension MethodReadBEInt32
Reads an integer encoded as big endian from buffer at the specified index
(Defined by IOMiscUtils.)
Public Extension MethodReadBEShort
Reads a short encoded as big endian from stream
(Defined by IOMiscUtils.)
Public Extension MethodReadBEUInt64
Reads an integer encoded as big endian from buffer at the specified index
(Defined by IOMiscUtils.)
Public Extension MethodReadBEUShort
Reads an ushort encoded as big endian from stream
(Defined by IOMiscUtils.)
Public Extension MethodReadSLEB128 Overloaded. (Defined by LEB128.)
Public Extension MethodReadSLEB128(Int32 )Overloaded. (Defined by LEB128.)
Public Extension MethodReadULEB128 Overloaded. (Defined by LEB128.)
Public Extension MethodReadULEB128(Int32 )Overloaded. (Defined by LEB128.)
Public Extension MethodToErlObject Overloaded.
Try to convert .NET native object type to corresponding Erlang term. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToErlObject(ErlTypeOrder, Boolean)Overloaded.
Try to convert .NET native object type to corresponding Erlang term of given type. Throw exception if conversion is not possible
(Defined by ErlObject.)
Public Extension MethodToJSON(JSONWritingOptions)Overloaded.
Serializes object into JSON string
(Defined by JSONExtensions.)
Public Extension MethodToJSON(TextWriter, JSONWritingOptions)Overloaded.
Serializes object into JSON format using provided TextWriter
(Defined by JSONExtensions.)
Public Extension MethodToJSON(Stream, JSONWritingOptions, Encoding)Overloaded.
Serializes object into JSON format using provided stream and optional encoding
(Defined by JSONExtensions.)
Public Extension MethodWriteBEInt32
Writes an integer encoded as big endian to the given stream
(Defined by IOMiscUtils.)
Public Extension MethodWriteBEShort
Writes a short encoded as big endian to the given stream
(Defined by IOMiscUtils.)
Public Extension MethodWriteBEUInt64
Writes an unsigned long integer encoded as big endian to the given stream
(Defined by IOMiscUtils.)
Public Extension MethodWriteBEUShort
Writes an ushort encoded as big endian to the given stream
(Defined by IOMiscUtils.)
Public Extension MethodWriteSLEB128(Int64, Int32)Overloaded. (Defined by LEB128.)
Public Extension MethodWriteSLEB128(Int64, Int32 , Int32)Overloaded. (Defined by LEB128.)
Public Extension MethodWriteULEB128(UInt64, UInt32)Overloaded. (Defined by LEB128.)
Public Extension MethodWriteULEB128(UInt64, Int32 , UInt32)Overloaded. (Defined by LEB128.)
Back to Top
Fields

  NameDescription
Protected field_LastReleaseUtc
Whan was the chunk released to the pool for the last time
Protected fieldAcquired
True if chunk is taken out of pool by some socket
Protected fieldstat_MaxLength
Used for statistics/tracking
Protected fieldstat_MaxUsedPosition
Used for statistics/tracking
Back to Top
Properties

  NameDescription
Public propertyOnlineCanRead
Gets a value indicating whether the current stream supports reading.
(Inherited from OnlineMemoryStream.)
Public propertyOnlineCanSeek
Gets a value indicating whether the current stream supports seeking.
(Inherited from OnlineMemoryStream.)
Public propertyOnlineCanTimeout
Gets a value that determines whether the current stream can time out.
(Inherited from OnlineStream.)
Public propertyOnlineCanWrite
Gets a value indicating whether the current stream supports writing.
(Inherited from OnlineMemoryStream.)
Public propertyOnlineCapacity
Gets or sets the number of bytes allocated for this stream.
(Inherited from OnlineMemoryStream.)
Public propertyOnlineLength
Gets the length of the stream in bytes.
(Inherited from OnlineMemoryStream.)
Public propertyOnlinePosition
Gets or sets the current position within the stream.
(Inherited from OnlineMemoryStream.)
Public propertyOnlineReadTimeout
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out.
(Inherited from OnlineStream.)
Public propertyOnlineWriteTimeout
Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out.
(Inherited from OnlineStream.)
Back to Top
See Also