toVarint

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

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

Parameters

r R

output range

src T

The value to encode

Return Value

Type: void

The created VarInt

Meta