Skip to main content

OH_ArkWebHttpBodyStream_GetSize

Function OH_ArkWebHttpBodyStream_GetSize 

Source
pub unsafe extern "C" fn OH_ArkWebHttpBodyStream_GetSize(
    httpBodyStream: *const ArkWeb_HttpBodyStream,
) -> u64
Available on crate features api-11 and api-12 only.
Expand description

Get the total size of the data stream.

When data is chunked or httpBodyStream is invalid, always return zero.

§Arguments

  • httpBodyStream - The ArkWeb_HttpBodyStream.

§Returns

  • The size of data stream.

Required System Capabilities: SystemCapability.Web.Webview.Core

Available since API-level: 12