温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/jsc/serialize
点击访问原文链接

bun:jsc serialize function | API Reference | Bun

bun:jsc serialize function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/bun:jsc/serializeFserialize

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/bun:jsc/serializeFserialize

function

jsc.serializefunction serialize(value: any,options?: { binaryType: 'arraybuffer' }): SharedArrayBuffer;Convert a JavaScript value to a binary representation that can be sent to another Bun instance.

Internally, this uses the serialization format from WebKit/Safari.

@param valueA JavaScript value, usually an object or array, to be converted.

@returnsA SharedArrayBuffer that can be sent to another Bun instance.

function serialize(value: any,options?: { binaryType: 'nodebuffer' }): Buffer;Convert a JavaScript value to a binary representation that can be sent to another Bun instance.

Internally, this uses the serialization format from WebKit/Safari.

@param valueA JavaScript value, usually an object or array, to be converted.

@returnsA Buffer that can be sent to another Bun instance.

Referenced typesinterface SharedArrayBufferreadonly [Symbol.species]: SharedArrayBufferreadonly [Symbol.toStringTag]: 'SharedArrayBuffer'readonly byteLength: numberRead-only. The length of the ArrayBuffer (in bytes).

get growableget maxByteLengthgrow(newByteLength?: number): void;Grows the SharedArrayBuffer to the specified size (in bytes).

MDN

grow(size: number): SharedArrayBuffer;Grow the SharedArrayBuffer in-place.

slice(begin?: number,end?: number): SharedArrayBuffer;Returns a section of an SharedArrayBuffer.

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录