import { FastUtf8 } from "fast-utf8"; const B = 1; const KiB = 1024 * B; /** * オブジェクトキー処理専用の UTF-8 エンコーダー/デコーダーです。 * * - 不正なバイトシーケンスが検出された場合にエラーを投げます。 * - バイトオーダーマークを無視します。 */ const utf8 = new FastUtf8({ strict: true, ignoreBOM: true, allocateSize: 3 * KiB, }); export default utf8;