toVarint

Encode an unsigned value into a VarInt-encoded series of bytes

  1. void toVarint(ref R r, T src)
    void
    toVarint
    @safe @property
    (
    R
    T
    )
    (
    ref R r
    ,
    T src
    )
    if (
    isOutputRange!(R, ubyte) &&
    isIntegral!T
    &&
    isUnsigned!T
    )
  2. void toVarint(ref R r, long src)

Parameters

r
Type: R

output range

src
Type: T

The value to encode

Return Value

Type: void

The created VarInt

Meta