Click or drag to resize

BinaryRecordWriterT Class

A record writer that writes to a file using a binary format based on IWritable serialization.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.IORecordWriterT
    Ookii.Jumbo.IOStreamRecordWriterT
      Ookii.Jumbo.IOBinaryRecordWriterT

Namespace:  Ookii.Jumbo.IO
Assembly:  Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax
public class BinaryRecordWriter<T> : StreamRecordWriter<T>

Type Parameters

T
The type of the record to write. Must implement IWritable or have an associated IValueWriterT implementation.

The BinaryRecordWriterT type exposes the following members.

Constructors
  NameDescription
Public methodBinaryRecordWriterT
Initializes a new instance of the BinaryRecordWriterT class.
Top
Properties
  NameDescription
Public propertyBytesWritten
Gets the number of bytes that were actually written to the output.
(Inherited from StreamRecordWriterT.)
Public propertyHasFinishedWriting
Gets a value indicating whether FinishWriting method has been called.
(Inherited from RecordWriterT.)
Public propertyOutputBytes
Gets the size of the written records after serialization.
(Inherited from StreamRecordWriterT.)
Public propertyRecordsWritten
Gets the total number of records written by this record writer.
(Inherited from RecordWriterT.)
Public propertyStream
Gets the underlying stream to which this record reader is writing.
(Inherited from StreamRecordWriterT.)
Public propertyWriteTime
Gets the time spent writing.
(Inherited from RecordWriterT.)
Top
Methods
  NameDescription
Public methodDispose
Cleans up all resources held by this RecordWriter{T}.
(Inherited from RecordWriterT.)
Protected methodDispose(Boolean)
Cleans up all resources associated with this BinaryRecordWriterT.
(Overrides StreamRecordWriterTDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFinishWriting
Informs the record writer that no further records will be written.
(Inherited from RecordWriterT.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteRecord
Writes a record.
(Inherited from RecordWriterT.)
Protected methodWriteRecordInternal
Writes the specified record to the stream.
(Overrides StreamRecordWriterTWriteRecordInternal(T).)
Public methodWriteRecords
Writes the specified sequence of records.
(Inherited from RecordWriterT.)
Top
Remarks

The data written by this class can be read back by a BinaryRecordReaderT class with the same value for T. All records passed to WriteRecord(T) must be T; they may not be a type derived from T.

See Also