Class SizeConstants
Constants for calculating memory sizes of Row objects and their components. All sizes are for 64-bit CLR.
public static class SizeConstants
- Inheritance
-
SizeConstants
- Inherited Members
Fields
ARRAY_OVERHEAD
public const uint ARRAY_OVERHEAD = 24
Field Value
BOOL_BOX
public const uint BOOL_BOX = 24
Field Value
CHAR_SIZE
public const uint CHAR_SIZE = 2
Field Value
DATETIME_BOX
public const uint DATETIME_BOX = 24
Field Value
DATE_BOX
public const uint DATE_BOX = 24
Field Value
DEC_BOX
public const uint DEC_BOX = 32
Field Value
GUID_BOX
public const uint GUID_BOX = 40
Field Value
INSTANT_BOX
public const uint INSTANT_BOX = 32
Field Value
INT_BOX
public const uint INT_BOX = 24
Field Value
LONG_BOX
public const uint LONG_BOX = 24
Field Value
OBJECT_HEADER
public const uint OBJECT_HEADER = 16
Field Value
POINTER
public const uint POINTER = 8
Field Value
ROW_BASE
public const uint ROW_BASE = 160
Field Value
STRING_OVERHEAD
public const uint STRING_OVERHEAD = 22
Field Value
TIME_BOX
public const uint TIME_BOX = 24
Field Value
VERSION_BOX
public const uint VERSION_BOX = 24
Field Value
Methods
BlobBoxSize(int)
Calculate size of a ByteBox containing a byte array of given length
public static uint BlobBoxSize(int length)
Parameters
lengthint
Returns
StringBoxSize(int)
Calculate size of a StringBox or TextBox containing a string of given length
public static uint StringBoxSize(int length)
Parameters
lengthint