Click or drag to resize

SerializationWriterWriteOptimized Method (UInt32)

Write a UInt32 value using the fewest number of bytes possible.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
[CLSCompliantAttribute(false)]
public void WriteOptimized(
	uint value
)

Parameters

value
Type: SystemUInt32
The UInt32 to store. Must be between 0 and 268,435,455 inclusive.
Remarks
0x00000000 - 0x0000007f (0 to 127) takes 1 byte 0x00000080 - 0x000003FF (128 to 16,383) takes 2 bytes 0x00000400 - 0x001FFFFF (16,384 to 2,097,151) takes 3 bytes 0x00200000 - 0x0FFFFFFF (2,097,152 to 268,435,455) takes 4 bytes ---------------------------------------------------------------- 0x10000000 - 0xFFFFFFFF (268,435,456 and above) takes 5 bytes Only call this method if the value is known to be between 0 and 268,435,455 otherwise use Write(UInt32 value)
See Also