Skip to content

bytesToBase64 — @gj-kit/expo-media

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

import { bytesToBase64 } from '@gj-kit/expo-media/testing';
/**
* 바이트 → base64.
*
* ⚠ **인메모리 파일시스템이 `readBase64`를 이걸로 구현한다.** 코어의 스트리밍 해시는
* 이 문자열을 다시 디코드해 SHA-256에 먹이므로, 여기가 틀리면 §7 하드닝 9(3의 배수 창 정렬)의
* 유닛 검증이 **틀린 기준을 통과**하게 된다 — 페이크가 부실하면 테스트도 부실해지는 지점의 실례다.
* 그래서 패딩까지 표준 그대로 구현한다.
*/
declare function bytesToBase64(bytes: Uint8Array): string;

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: ./testing
  • Source: GitHub