Version.extract

Assumes that input is versioned struct chunk and extracts version number from it. Otherwise will return garbage

  1. void[] extract(void[] data, Version.Type ver)
    struct Version
    static
    void[]
    extract
    (
    void[] data
    ,)
  2. const(void)[] extract(void[] data, Version.Type ver)

Parameters

data void[]

serialized struct data, untouched

ver Version.Type

out parameter to store version number

Return Value

Type: void[]

data slices after the version bytes

Meta