Bun 實作 Web 標準 TextDecoder
類別,用於在二進制資料類型和字串之間進行轉換。
const buf = new ArrayBuffer(64);
const decoder = new TextDecoder();
const str = decoder.decode(buf);
請參閱 文件 > API > 二進制資料,以取得使用 Bun 處理二進制資料的完整文件。
Bun 實作 Web 標準 TextDecoder
類別,用於在二進制資料類型和字串之間進行轉換。
const buf = new ArrayBuffer(64);
const decoder = new TextDecoder();
const str = decoder.decode(buf);
請參閱 文件 > API > 二進制資料,以取得使用 Bun 處理二進制資料的完整文件。