Version.inject

Writes version data in the beginning of provided data buffer. Grows buffer if it is too small. Call this function before actually writing any useful payload to the buffer or it will be overwritten.

  1. void[] inject(Buffer!(void) data, Version.Type ver)
  2. void[] inject(void[] data, Version.Type ver)
    struct Version
    static
    void[]
    inject
    (
    ref void[] data
    ,)

Parameters

data void[]

any byte buffer, will be modified to start with version info

ver Version.Type

version number to inject

Return Value

Type: void[]

slice of data after the version data. Use that slice to add actual payload

Meta