unpack

Decodes binary data from file.

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

  1. auto unpack(auto ref Range data)
  2. auto unpack(File file)
    unpack
    (
    string format
    )
    (
    File file
    )

Parameters

format

Format specifier

file
Type: File

File to read from

Return Value

Type: auto

Tuple with read data.

Meta