unpackTo

Decodes binary data.

This function unpacks binary encoded data from range and puts them into variables passed as arguments. If range is too small, DecodeException is thrown.

  1. void unpackTo(auto ref Range range, ref V values)
    void
    unpackTo
    (
    string format
    Range
    V...
    )
    (
    auto ref Range range
    ,
    ref V values
    )
    if (
    isInputRange!Range &&
    is(ElementType!Range == ubyte)
    )
  2. void unpackTo(File file, ref V values)
  3. void unpackTo(auto ref Range range, ref V values)
  4. void unpackTo(File file, ref V values)
  5. void unpackTo(ref BinaryReader!Range reader, ref V values)

Parameters

format

Format specifier

byteOrder

Byte Order to use, ByteOrder.Native is default.

range
Type: Range

Data to unpack values... = Values to un pack to

Throws

DecodeException

Meta