Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Serialization Namespace / FieldWriter Class / Write Method / Write(UInt64) Method
The UInt64 value to encode.

In This Topic
    Write(UInt64) Method
    In This Topic
    Stores a 64-bit unsigned value into the stream using 7-bit encoding. The value is written 7 bits at a time (starting with the least-significant bits) until there are no more bits to write. The eighth bit of each byte stored is used to indicate whether there are more bytes following this one. There is a special optimization for UInt64 because after passing 8 7-bit values we know that there can only be 8 bits left (since the original data was 64 bits long). So, for that last byte, we can use all 8 bits. This means that the worst case size for a double is 9 bytes versus 10 which would otherwise sometimes be necessary to pass that very last bit.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Write( _
       ByVal value As ULong _
    ) 
    public void Write( 
       ulong value
    )

    Parameters

    value
    The UInt64 value to encode.
    Remarks
    The value is written 7 bits at a time (starting with the least-significant bits) until there are no more bits to write. The eighth bit of each byte stored is used to indicate whether there are more bytes following this one. There is a special optimization for UInt64 because after passing 8 7-bit values we know that there can only be 8 bits left (since the original data was 64 bits long). So, for that last byte, we can use all 8 bits. This means that the worst case size for a double is 9 bytes versus 10 which would otherwise sometimes be necessary to pass that very last bit.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also