writeProto

Encode a value into a series of bytes

  1. ubyte[] writeProto(BuffType!T src)
    ubyte[]
    writeProto
    (
    string T
    )
    if (
    T == "int32" ||
    T == "int64"
    ||
    T == "uint32"
    ||
    T == "uint64"
    ||
    T == "bool"
    )
  2. ubyte[] writeProto(BuffType!T src)
  3. ubyte[] writeProto(BuffType!T src)
  4. ubyte[] writeProto(BuffType!T src)

Parameters

src BuffType!T

The raw data

Return Value

Type: ubyte[]

The encoded value

Meta