Collapse All Expand All

C#

Oracle® Coherence .NET API Reference
DataWriter..::.WritePackedInt64 Method
DataWriter Class See Also

Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01
Write an Int64 value using a variable-length storage format.

Namespace: Tangosol.IO
Assembly: Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

# Syntax

C#
    public virtual void WritePackedInt64(
    	long l
    )

#### Parameters

l
  Type: System..::.Int64
  An Int64 value to write.

# Remarks

The "packed" format includes a sign bit (0x40) and a continuation bit (0x80) in the first byte, followed by the least 6 significant bits of the long value. Subsequent bytes (each appearing only if the previous byte had its continuation bit set) include a continuation bit (0x80) and the next least 7 significant bits of the long value. In this way, a 64-bit value is encoded into 1-10 bytes, depending on the magnitude of the value being encoded.

# Exceptions

Exception | Condition
--- | ---
System.IO..::.IOException | If an I/O error occurs.

# See Also

DataWriter Class
Tangosol.IO Namespace