geotiff.js
    Preparing search index...

    Function parseByteRanges

    • Parses a list of byteranges from the given 'multipart/byteranges' HTTP response. Each item in the list has the following properties:

      • headers: the HTTP headers
      • data: the sliced ArrayBuffer for that specific part
      • offset: the offset of the byterange within its originating file
      • length: the length of the byterange

      Parameters

      • responseArrayBuffer: ArrayBuffer

        the response to be parsed and split

      • boundary: string

        the boundary string used to split the sections

      Returns {
          data: ArrayBuffer;
          fileSize: number;
          headers: Record<string, string>;
          length: number;
          offset: number;
      }[]

      the parsed byteranges