IOMiscUtils MembersNFX Class Library

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

The IOMiscUtils type exposes the following members.
Methods

  NameDescription
Public methodStatic memberAsCharEnumerable(Stream)
Public methodStatic memberAsCharEnumerable(TextReader)
Public methodStatic memberCopyStream
Copies one stream into another using temp buffer
Public methodStatic memberEnsureAccessibleDirectory
Creates directory and immediately grants it accessibility rules for everyone if it does not exists, or returns the existing directory
Public methodStatic memberEnsureDirectoryDeleted
Tries to delete the specified directory if it exists BLOCKING for up to the specified interval until directory is PHYSICALLY deleted. Returns true when directory either did not exist in the first place or was successfully deleted (with confirmation). Returns false when directory could not be confirmed to be deleted within the specified timeout, this does not mean that the OS will not delete the directory later, so calling this function in a loop is expected. NOTE: Directory.Delete() does not guarantee that directory is no longer on disk upon its return
Public methodStatic memberEnsureFileEventuallyDeleted
Deleted file if it exists - does not block until file is deleted, the behavior is up to the OS
Public methodStatic memberGetURL
Fetch the content of a given URL.
Public methodStatic memberMemBufferEquals
Returns true if both buffers contain the same number of the same bytes. The implementation uses quad-word comparison as much as possible for speed. Requires UNSAFE switch
Public methodStatic memberNormalizeCenteredImage
Scales source image so it fits in the desired image size preserving aspect ratio. This function is usable for profile picture size/aspect normalization
Public methodStatic memberPackISO3CodeToInt
Represents an ISO code as 4 byte integer filled with up to 3 ASCII chars converted to upper case, the highest byte is free to be used by the application
Public methodStatic memberReadBEInt32( Byte )
Reads an integer encoded as big endian from buffer at index 0
Public methodStatic memberReadBEInt32(Stream)
Reads an integer encoded as big endian from buffer at the specified index
Public methodStatic memberReadBEInt32( Byte , Int32 )
Reads an integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
Public methodStatic memberReadBEInt32( Byte , Int64 )
Reads an integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
Public methodStatic memberReadBEShort(Stream)
Reads a short encoded as big endian from stream
Public methodStatic memberReadBEShort( Byte , Int32 )
Reads a short encoded as big endian from buffer at the specified index
Public methodStatic memberReadBEUInt32( Byte )
Reads an unsigned integer encoded as big endian from buffer at index 0
Public methodStatic memberReadBEUInt32( Byte , Int32 )
Reads an unsigned integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
Public methodStatic memberReadBEUInt32( Byte , Int64 )
Reads an unsigned integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
Public methodStatic memberReadBEUInt64(Stream)
Reads an integer encoded as big endian from buffer at the specified index
Public methodStatic memberReadBEUInt64( Byte , Int32)
Reads an integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
Public methodStatic memberReadBEUInt64( Byte , Int32 )
Reads an integer encoded as big endian from buffer at the specified index and increments the idx by the number of bytes read
Public methodStatic memberReadBEUShort
Reads an ushort encoded as big endian from stream
Public methodStatic memberReadLine
Reads first line from the string
Public methodStatic memberUnpackISO3CodeFromInt
Unpacks an ISO code from int which was packed with PackISO3CodeToInt
Public methodStatic memberWriteBEInt32( Byte , Int32)
Writes an integer encoded as big endian to buffer at index 0
Public methodStatic memberWriteBEInt32(Stream, Int32)
Writes an integer encoded as big endian to the given stream
Public methodStatic memberWriteBEInt32( Byte , Int32, Int32)
Writes an integer encoded as big endian to buffer at the specified index
Public methodStatic memberWriteBEShort(Stream, Int16)
Writes a short encoded as big endian to the given stream
Public methodStatic memberWriteBEShort( Byte , Int32, Int16)
Writes a short encoded as big endian to buffer at the specified index
Public methodStatic memberWriteBEUInt32( Byte , UInt32)
Writes an unsigned integer encoded as big endian to buffer at index 0
Public methodStatic memberWriteBEUInt32( Byte , Int32, UInt32)
Writes an unsigned integer encoded as big endian to buffer at the specified index
Public methodStatic memberWriteBEUInt64( Byte , UInt64)
Writes an unsigned long integer encoded as big endian to buffer at the beginning
Public methodStatic memberWriteBEUInt64(Stream, UInt64)
Writes an unsigned long integer encoded as big endian to the given stream
Public methodStatic memberWriteBEUInt64( Byte , Int32, UInt64)
Writes an unsigned long integer encoded as big endian to buffer at the specified index
Public methodStatic memberWriteBEUShort
Writes an ushort encoded as big endian to the given stream
Back to Top
Fields

  NameDescription
Public fieldStatic memberIO_WAIT_DEFAULT_TIMEOUT
Public fieldStatic memberIO_WAIT_GRANULARITY_MS
Public fieldStatic memberIO_WAIT_MIN_TIMEOUT
Back to Top
See Also