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.

Format string is implied from passed parameter types.

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

Parameters

byteOrder

Byte Order to use, ByteOrder.Native is default.

range
Type: Range

Data to unpack values... = Values to unpack to

Throws

DecodeException

Meta