使用 Bun 在二进制数据格式之间进行转换的指南集合
Binary data
Convert an ArrayBuffer to an array of numbers with Bun
Binary data
Convert an ArrayBuffer to a Blob with Bun
Binary data
Convert an ArrayBuffer to a Buffer with Bun
Binary data
Convert an ArrayBuffer to a string with Bun
Binary data
Convert an ArrayBuffer to a Uint8Array with Bun
Binary data
Convert a Blob to an ArrayBuffer with Bun
Binary data
Convert a Blob to a DataView with Bun
Binary data
Convert a Blob to a ReadableStream with Bun
Binary data
Convert a Blob to a string with Bun
Binary data
Convert a Blob to a Uint8Array with Bun
Binary data
Convert a Buffer to an ArrayBuffer with Bun
Binary data
Convert a Buffer to a blob with Bun
Binary data
Convert a Buffer to a ReadableStream with Bun
Binary data
Convert a Buffer to a string with Bun
Binary data
Convert a Buffer to a Uint8Array with Bun
Binary data
Convert a DataView to a string with Bun
Binary data
Convert a Uint8Array to an ArrayBuffer with Bun
Binary data
Convert a Uint8Array to a Blob with Bun
Binary data
Convert a Uint8Array to a Buffer with Bun
Binary data
Convert a Uint8Array to a DataView with Bun
Binary data
Convert a Uint8Array to a ReadableStream with Bun
Binary data
Convert a Uint8Array to a string with Bun