Click or drag to resize

RiffChunk Class

Represents the type ID and size for a "chunk" in a RIFF media format file.
Inheritance Hierarchy

Namespace: GSF.Media
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.205-beta
Syntax
public class RiffChunk : ISupportBinaryImage
View Source

The RiffChunk type exposes the following members.

Constructors
 NameDescription
Public methodRiffChunk(String) Constructs a new RiffChunk for the given typeID.
Protected methodRiffChunk(RiffChunk, String) Constructor for derived classes used to initialize and validate RiffChunk properties.
Top
Properties
 NameDescription
Public propertyBinaryLength Gets the length of a RiffChunk consisting of type ID and chunk size (i.e., 8 bytes).
Public propertyChunkSizeSize of RiffChunk.
Public propertyTypeIDFour character text identifer for RIFF chunk.
Top
Methods
 NameDescription
Public methodClone Creates a copy of the RiffChunk.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGenerateBinaryImage Generates a binary representation of this RiffChunk and copies it into the given buffer.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberReadNext Attempts to read the next RIFF chunk from the source stream.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberFixedLength The fixed byte length of a RiffChunk instance.
Top
Extension Methods
 NameDescription
Public Extension MethodBinaryImage Returns a binary image of an object that implements ISupportBinaryImage.
(Defined by ISupportBinaryImageExtensions)
Public Extension MethodCopyBinaryImageToStream Copies binary image of object that implements ISupportBinaryImage to a Stream.
(Defined by ISupportBinaryImageExtensions)
Public Extension MethodCopyImage This is a common optimized block copy function for any kind of data.
(Defined by Common)
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodParseBinaryImageFromStream Parses binary image of object that implements ISupportBinaryImage from a Stream.
(Defined by ISupportBinaryImageExtensions)
Top
Remarks

The Resource Interchange File Format (RIFF) is a generic meta-format for storing data in tagged chunks. It was introduced in 1991 by Microsoft and IBM, and was presented by Microsoft as the default format for Windows 3.1 multimedia files. It is based on Electronic Arts's Interchange File Format, introduced in 1985, the only difference being that multi-byte integers are in little-endian format, native to the 80x86 processor series used in IBM PCs, rather than the big-endian format native to the 68k processor series used in Amiga and Apple Macintosh computers, where IFF files were heavily used. (The specification for AIFF, the big-endian analogue of RIFF, was published by Apple Computer in 1988.) The Microsoft implementation is mostly known through file formats like AVI, ANI and WAV, which use the RIFF meta-format as their basis.

Some common RIFF file types:
File extensionDescription
WAVWindows audio file
AVIWindows audio/video file
ANIAnimated Windows cursors
RMIWindows RIFF MIDI file
CDRCorelDRAW vector graphics file

See Also