SerializationWriter.WriteOptimized Method (DateTime)
Writes a DateTime value into the stream using the fewest number of bytes possible.
Stored Size: 3 bytes to 7 bytes (.Net is 8 bytes)
Notes:
A DateTime containing only a date takes 3 bytes
(except a .NET 2.0 Date with a specified DateTimeKind which will take a minimum
of 5 bytes - no further optimization for this situation felt necessary since it
is unlikely that a DateTimeKind would be specified without hh:mm also)
Date plus hh:mm takes 5 bytes.
Date plus hh:mm:ss takes 6 bytes.
Date plus hh:mm:ss.fff takes 7 bytes.
Namespace: SobekCM.Core.MemoryMgmt Assembly: SobekCM_Core (in SobekCM_Core.dll) Version: 4.10.0.0 (4.10.0.0) Syntax
Parameters
See AlsoVersion 4.10.0 ( last generated Monday, March 7, 2016 ) |