Skip to content

computeChunkRanges — @gj-kit/expo-media

A public function from @gj-kit/expo-media. The signature below is taken directly from the 0.6.1 release declaration.

import { computeChunkRanges } from '@gj-kit/expo-media';
/**
* `size` 바이트 파일을 순차 `[position, length)` 창으로 나눈다. 순수 함수.
*
* ⚠ **`chunkBytes` 인자를 공개하지 않는다**(§6.1-⑩). 전신 `hashFile.ts:18`은 기본 인자로 이것을
* 열어 두었고, "3의 배수"라는 제약은 타입으로 표현할 수 없으므로 그 인자가 곧 하드닝 9의
* 회귀 통로였다. 실제로 전신 테스트가 `computeChunkRanges(100, 1000)`처럼 3의 배수가 아닌 값을
* 넘기고 있었다.
*/
declare function computeChunkRanges(size: number): readonly ChunkRange[];

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-media
  • Version: 0.6.1
  • Public entry: .
  • Source: GitHub