C# Class NetBase.Storage.Column

The column class is roughly based on a DBF style struct. Names are limited to ten characters, there are a couple of datatypes; but they're all written as strings, that kind of thing. Note that NetBase currently only supports writing strings; although it can read different datatypes See the table class for more notes about the on-disk format.
ファイルを表示 Open project: buttonpusher/NetBase Class Usage Examples

Public Methods

Method Description
BinRead ( BinaryReader br ) : void
BinWrite ( BinaryWriter bw ) : void
ReadFromRow ( BinaryReader br ) : object

The column knows about the datatype, so it takes care of reading and writing the row's data

WriteToRow ( BinaryWriter bw, string data ) : void

The column knows about the datatype, so it takes care of reading and writing the row's data

Method Details

BinRead() public method

public BinRead ( BinaryReader br ) : void
br System.IO.BinaryReader
return void

BinWrite() public method

public BinWrite ( BinaryWriter bw ) : void
bw System.IO.BinaryWriter
return void

ReadFromRow() public method

The column knows about the datatype, so it takes care of reading and writing the row's data
public ReadFromRow ( BinaryReader br ) : object
br System.IO.BinaryReader
return object

WriteToRow() public method

The column knows about the datatype, so it takes care of reading and writing the row's data
public WriteToRow ( BinaryWriter bw, string data ) : void
bw System.IO.BinaryWriter
data string
return void