Click or drag to resize

SerializationWriterWriteOptimized Method (Int16)

Write an Int16 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.7.0.0 (5.7.0)
Syntax
public void WriteOptimized(
	short value
)

Parameters

value
Type: SystemInt16
The Int16 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 - 0x7FFF (16,384 to 32,767) takes 3 bytes All negative numbers take 3 bytes Only call this method if the value is known to be between 0 and 16,383 otherwise use Write(Int16 value)
See Also