33 var bytes =
new byte[1];
34 area.
Read(bytes, 0, 1);
46 var bytes =
new byte[2];
47 area.
Read(bytes, 0, 2);
48 return BitConverter.ToInt16(bytes, 0);
59 var bytes =
new byte[4];
60 area.
Read(bytes, 0, 4);
61 return BitConverter.ToInt32(bytes, 0);
72 var bytes =
new byte[8];
73 area.
Read(bytes, 0, 8);
74 return BitConverter.ToInt64(bytes, 0);
83 var bytes =
new byte[1] {value};
84 area.
Write(bytes, 0, 1);
93 var bytes = BitConverter.GetBytes(value);
94 area.
Write(bytes, 0, 2);
103 var bytes = BitConverter.GetBytes(value);
104 area.
Write(bytes, 0, 4);
113 var bytes = BitConverter.GetBytes(value);
114 area.
Write(bytes, 0, 8);
static long ReadInt8(this IArea area)
Reads a 8-byte integer from the area.
static void WriteInt2(this IArea area, short value)
Writes a 2-byte integer into the given area.
static void WriteInt4(this IArea area, int value)
Writes a 4-byte integer into the given area.
int Read(byte[] buffer, int offset, int length)
Reads an array of bytes from the underlying IArea and advances the position by length ...
static int ReadInt4(this IArea area)
Reads a 4-byte integer from the area.
Extension methods to optimize the access to the contents of an IArea of a database store...
static byte ReadByte(this IArea area)
Reads a single byte from the area.
void Write(byte[] buffer, int offset, int length)
static void WriteInt8(this IArea area, long value)
Writes a 8-byte integer into the given area.
An interface for access the contents of an area of a store.
static short ReadInt2(this IArea area)
Reads a 2-byte integer from the area.
static void WriteByte(this IArea area, byte value)
Writes a single byte into the given area.