unpack

Decodes binary data.

This function works similar to other unpack functions, except that read data is returned as tuple.

  1. auto unpack(auto ref Range data)
    unpack
    (
    string format
    Range
    )
    (
    auto ref Range data
    )
    if (
    isInputRange!Range &&
    is(ElementType!Range == ubyte)
    )
  2. auto unpack(File file)

Parameters

format

Format specifier

data
Type: Range

Binary encoded data

Return Value

Type: auto

Tuple with read data.

Meta