SerializationWriter.WriteOptimized Method (Int32)
Write an Int32 value using the fewest number of bytes possible.
Only call this method if the value is known to be between 0 and 268,435,455 otherwise use Write(Int32 value) Namespace: SobekCM.Core.MemoryMgmt Assembly: SobekCM_Core (in SobekCM_Core.dll) Version: 4.10.0.0 (4.10.0.0) Syntax
Parameters
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 - 0x07FFFFFF (268,435,456 and above) takes 5 bytes
All negative numbers take 5 bytes
Only call this method if the value is known to be between 0 and
268,435,455 otherwise use Write(Int32 value)
See AlsoVersion 4.10.0 ( last generated Monday, March 7, 2016 ) |