Skip to content

BinaryArchiveReader

Public Class

Represents an entity that is capable of reading a binary archive and instantiating strongly-typed objects.

Inheritance Hierarchy

System.Object
Rhino.FileIO.BinaryArchiveReader

Namespace: Rhino.FileIO

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public class BinaryArchiveReader

The BinaryArchiveReader type exposes the following members.

Properties

Name

Description


Public Property

If a 3dm archive is being read or written, then this is the version of the 3dm archive format (1, 2, 3, 4 or 5). 0 a 3dm archive is not being read/written 1 a version 1 3dm archive is being read/written 2 a version 2 3dm archive is being read/written 3 a version 3 3dm archive is being read/written 4 a version 4 3dm archive is being read/written 5 an old version 5 3dm archive is being read 50 a version 5 3dm archive is being read/written.


Public Property

current offset (in bytes) into archive ( like ftell() )


Public Property

Gets or sets whether en error occurred during reading.


Methods

Name

Description


Public Method

true if at end of a file


Public Method

Begins reading a chunk that must be in the archive at this location.


Public Method

Begins reading a chunk that must be in the archive at this location.


Public Method

Function for studying contents of a file. The primary use is as an aid to help dig through files that have been damaged (bad disks, transmission errors, etc.) If an error is found, a line that begins with the word “ERROR” is printed.


Public Method

Expert user function to control CRC calculation while reading and writing. Typically this is used when seeking around and reading/writing information in non-serial order.


Public Method

Calling this will skip rest of stuff in chunk if it was only partially read.


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Protected Method

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

(Inherited from Object.)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Protected Method

MemberwiseClone

Creates a shallow copy of the current Object.

(Inherited from Object.)


Public Method

A chunk version is a single byte that encodes a major.minor version number. Useful when creating I/O code for 3dm chunks that may change in the future. Increment the minor version number if new information is added to the end of the chunk. Increment the major version if the format of the chunk changes in some other way.


Public Method

Public Method

Reads a Boolean from the archive.


Public Method

Reads an array of Boolean from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a BoundingBox from the archive.


Public Method

Reads a Byte from the archive.


Public Method

Reads an array of Byte from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Color from the archive.


Public Method

Reads an array of compressed Byte information from the archive and uncompresses it.

An array is returned even if the input was another enumerable type.


Public Method

Reads a complete ArchivableDictionary from the archive.


Public Method

Reads a Double from the archive.


Public Method

Reads an array of Double from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Font from the archive.


Public Method

Reads a GeometryBase-derived object from the archive.

The GeometryBase class is abstract.


Public Method

Public Method

Reads a Guid from the archive.


Public Method

Reads an array of Guid from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Int32 from the archive.


Public Method

Reads a Int64 from the archive.


Public Method

Reads an array of Int32 from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Interval from the archive.


Public Method

Reads a Line from the archive.


Public Method

Reads a MeshingParameters from the archive.


Public Method

Reads a ObjRef from the archive


Public Method

Reads an array of Double from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Plane from the archive.


Public Method

Reads a Point from the archive.


Public Method

Reads a Point2d from the archive.


Public Method

Reads a Point3d from the archive.


Public Method

Reads a Point3f from the archive.


Public Method

Reads a Point4d from the archive.


Public Method

Reads a PointF from the archive.


Public Method

Reads a Ray3d from the archive.


Public Method

Reads a Rectangle from the archive.


Public Method

Reads a RectangleF from the archive.


Public Method

Reads a RenderSettings-derived object from the archive.


Public Method

Reads a SByte from the archive.


Public Method

Reads an array of SByte from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Int16 from the archive.


Public Method

Reads an array of Int16 from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Single from the archive.


Public Method

Reads an array of Single from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Size from the archive.


Public Method

Reads a SizeF from the archive.


Public Method

Reads a String from the archive.


Public Method

Reads an array of String from the archive.

An array is returned even if the input was another enumerable type.


Public Method

Reads a Transform from the archive.


Public Method

Reads a UInt32 from the archive.


Public Method

Reads a UInt16 from the archive.


Public Method

Reads a String from the archive.


Public Method

Reads a Vector2d from the archive.


Public Method

Reads a Vector3d from the archive.


Public Method

Reads a Vector3f from the archive.


Public Method

seek from current position ( like fseek( ,SEEK_CUR) )


Public Method

seek from current position ( like fseek( ,SEEK_CUR) )


Public Method

seek from start position ( like fseek( ,SEEK_SET) )


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)