Click or drag to resize

SerializationWriterWriteOptimized Method (UInt16)

Write a UInt16 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(
	ushort value
)

Parameters

value
Type: SystemUInt16
The UInt16 to store. Must be between 0 and 16,383 inclusive.
Remarks
0x0000 - 0x007f (0 to 127) takes 1 byte 0x0080 - 0x03FF (128 to 16,383) takes 2 bytes ---------------------------------------------------------------- 0x0400 - 0xFFFF (16,384 to 65,536) takes 3 bytes Only call this method if the value is known to be between 0 and 16,383 otherwise use Write(UInt16 value)
See Also