A Sandcastle Documented Class Library
DataBlock Class
A data sub-block to form part of a Graphics Interchange Format data stream. See http://www.w3.org/Graphics/GIF/spec-gif89a.txt section 15.
Declaration Syntax
C#Visual BasicVisual C++
public class DataBlock : GifComponent
Public Class DataBlock _
	Inherits GifComponent
public ref class DataBlock : public GifComponent
All MembersConstructorsMethodsProperties

DataBlock(Int32, array<Byte>[]()[])

Gets the actual length of the data block.

Gets the status of this component, consisting of its error state and any associated error message.
(Inherited from GifComponent.)
Gets the combined error states of this component and all its child components.
(Inherited from GifComponent.)
Gets the byte array containing the data in this data sub-block. This does not include the first byte which holds the block size.

Gets the block size held in the first byte of this data block. This should be the same as the actual length of the data block but may not be if the data block was instantiated from a corrupt stream - check the ErrorStatus property.

Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Gets any error message associated with the component's error state.
(Inherited from GifComponent.)
Gets the member of the Gif.Components.ErrorState enumeration held within the ComponentStatus property.
(Inherited from GifComponent.)
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Reads the next variable length data block from the input stream.

Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Gets the Type of the current instance.
(Inherited from Object.)
Gets a specific byte within the data block

Creates a shallow copy of the current Object.
(Inherited from Object.)
SetStatus(ErrorState, String)
Sets the ComponentStatus property of thie GifComponent.
(Inherited from GifComponent.)
Tests whether the error state of this component or any of its member components contains the supplied member of the ErrorState enumeration.
(Inherited from GifComponent.)
Gets a string representation of the error status of this component and its subcomponents.
(Inherited from GifComponent.)
Writes this component to the supplied output stream.
(Overrides GifComponent.WriteToStream(Stream).)
Data Sub-blocks are units containing data. They do not have a label, these blocks are processed in the context of control blocks, wherever data blocks are specified in the format. The first byte of the Data sub-block indicates the number of data bytes to follow. A data sub-block may contain from 0 to 255 data bytes. The size of the block does not account for the size byte itself, therefore, the empty sub-block is one whose size field contains 0x00.
Inheritance Hierarchy

Assembly: GifComponents (Module: GifComponents) Version: 0.1.3594.26453