allocateEncodeSize

calculates and returns the size needed to encode the length of the array passed.

  1. size_t allocateEncodeSize(const(ubyte[]) data)
    allocateEncodeSize
    (
    const(ubyte[]) data
    )
  2. size_t allocateEncodeSize(size_t length)

Parameters

data const(ubyte[])

An array that will be encoded

Meta