allocateEncodeSize

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

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

Parameters

length size_t

Number of bytes to be encoded

Meta