C# Class Deveel.Data.Store.AreaExtensions

Extension methods to optimize the access to the contents of an IArea of a database store.
Datei anzeigen Open project: deveel/deveeldb

Public Methods

Method Description
ReadByte ( this area ) : byte

Reads a single byte from the area.

ReadInt2 ( this area ) : short

Reads a 2-byte integer from the area.

ReadInt4 ( this area ) : int

Reads a 4-byte integer from the area.

ReadInt8 ( this area ) : long

Reads a 8-byte integer from the area.

WriteByte ( this area, byte value ) : void

Writes a single byte into the given area.

WriteInt2 ( this area, short value ) : void

Writes a 2-byte integer into the given area.

WriteInt4 ( this area, int value ) : void

Writes a 4-byte integer into the given area.

WriteInt8 ( this area, long value ) : void

Writes a 8-byte integer into the given area.

Method Details

ReadByte() public static method

Reads a single byte from the area.
public static ReadByte ( this area ) : byte
area this The source area from where to read.
return byte

ReadInt2() public static method

Reads a 2-byte integer from the area.
public static ReadInt2 ( this area ) : short
area this The source area from where to read.
return short

ReadInt4() public static method

Reads a 4-byte integer from the area.
public static ReadInt4 ( this area ) : int
area this The source area from where to read.
return int

ReadInt8() public static method

Reads a 8-byte integer from the area.
public static ReadInt8 ( this area ) : long
area this The source area from where to read.
return long

WriteByte() public static method

Writes a single byte into the given area.
public static WriteByte ( this area, byte value ) : void
area this The destination area where to write.
value byte The value to be written.
return void

WriteInt2() public static method

Writes a 2-byte integer into the given area.
public static WriteInt2 ( this area, short value ) : void
area this The destination area where to write.
value short The value to be written.
return void

WriteInt4() public static method

Writes a 4-byte integer into the given area.
public static WriteInt4 ( this area, int value ) : void
area this The destination area where to write.
value int The value to be written.
return void

WriteInt8() public static method

Writes a 8-byte integer into the given area.
public static WriteInt8 ( this area, long value ) : void
area this The destination area where to write.
value long The value to be written.
return void