开源鸿蒙 JS API Changes of the DSoftBus Subsystem

  • 2022-08-09
  • 浏览 (643)

JS API Changes of the DSoftBus Subsystem

The table below lists the APIs changes of the DSoftBus subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.

API Changes

Module Class Method/Attribute/Enumeration/Constant Change Type
ohos.rpc Ashmem readFromAshmem(size: number, offset: number): number[]; Added
ohos.rpc Ashmem writeToAshmem(buf: number[], size: number, offset: number): boolean; Added
ohos.rpc Ashmem setProtection(protectionType: number): boolean; Added
ohos.rpc Ashmem mapReadOnlyAshmem(): boolean; Added
ohos.rpc Ashmem mapReadAndWriteAshmem(): boolean; Added
ohos.rpc Ashmem mapAshmem(mapType: number): boolean; Added
ohos.rpc Ashmem getAshmemSize(): number; Added
ohos.rpc Ashmem unmapAshmem(): void; Added
ohos.rpc Ashmem closeAshmem(): void; Added
ohos.rpc Ashmem static createAshmemFromExisting(ashmem: Ashmem): Ashmem; Added
ohos.rpc Ashmem static createAshmem(name: string, size: number): Ashmem; Added
ohos.rpc Ashmem PROT_WRITE = 2; Added
ohos.rpc Ashmem PROT_READ = 1; Added
ohos.rpc Ashmem PROT_NONE = 0; Added
ohos.rpc Ashmem PROT_EXEC = 4; Added
ohos.rpc IPCSkeleton static getCallingTokenId(): number; Added
ohos.rpc SendRequestResult reply: MessageParcel; Added
ohos.rpc SendRequestResult data: MessageParcel; Added
ohos.rpc SendRequestResult code: number; Added
ohos.rpc SendRequestResult errCode: number; Added
ohos.rpc MessageParcel readRawData(size: number): number[]; Added
ohos.rpc MessageParcel writeRawData(rawData: number[], size: number): boolean; Added
ohos.rpc MessageParcel getRawDataCapacity(): number; Added
ohos.rpc MessageParcel readAshmem(): Ashmem; Added
ohos.rpc MessageParcel writeAshmem(ashmem: Ashmem): boolean; Added
ohos.rpc MessageParcel readFileDescriptor(): number; Added
ohos.rpc MessageParcel writeFileDescriptor(fd: number): boolean; Added
ohos.rpc MessageParcel containFileDescriptors(): boolean; Added
ohos.rpc MessageParcel static dupFileDescriptor(fd: number) :number; Added
ohos.rpc MessageParcel static closeFileDescriptor(fd: number): void; Added
ohos.rpc MessageParcel readRemoteObjectArray(objects: IRemoteObject[]): void;
readRemoteObjectArray(): IRemoteObject[];
Added
ohos.rpc MessageParcel readSequenceableArray(sequenceableArray: Sequenceable[]): void; Added
ohos.rpc MessageParcel writeRemoteObjectArray(objectArray: IRemoteObject[]): boolean; Added
ohos.rpc MessageParcel readException(): void; Added
ohos.rpc MessageParcel writeNoException(): void; Added

你可能感兴趣的文章

开源鸿蒙 JS API Changes of the Ability Framework

开源鸿蒙 JS API Changes of the ArkUI Development Framework

开源鸿蒙 JS API Changes of the Power Management Subsystem

开源鸿蒙 JS API Changes of the Bundle Management Framework

开源鸿蒙 JS API Changes of the Communication Subsystem

开源鸿蒙 JS API Changes of the DFX Subsystem

开源鸿蒙 JS API Changes of the Distributed Data Management Subsystem

开源鸿蒙 JS API Changes of the Distributed Scheduler Subsystem

开源鸿蒙 JS API Changes of the Common Event and Notification Subsystem

开源鸿蒙 JS API Changes of the File Management Subsystem

0  赞