Blob
Generated.swift:1052class Blob
class Blob
import DOM
protocol Any_BlobPart : ConvertibleToJSValue
protocol Any_ImageBitmapSource : ConvertibleToJSValue
protocol Any_MediaProvider : ConvertibleToJSValue
protocol Any_XMLHttpRequestBodyInit : ConvertibleToJSValue
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(blobParts: [BlobPart]? = nil, options: BlobPropertyBag? = nil)
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
let jsObject: JSObject
@ReadonlyAttribute var size: UInt64 { get }
@ReadonlyAttribute var type: String { get }
func arrayBuffer() async throws -> ArrayBuffer
func arrayBuffer() -> JSPromise
func slice(start: Int64? = nil, end: Int64? = nil, contentType: String? = nil) -> Self
func stream() -> ReadableStream
func text() -> JSPromise
func text() async throws -> String
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var description: String { get }
var jsValue: JSValue { get }
func jsValue() -> JSValue
class File
import FileSystem
protocol Any_Blob_or_BufferSource_or_String : ConvertibleToJSValue
protocol Any_FileSystemWriteChunkType : ConvertibleToJSValue
import WebSockets
protocol Any_Blob_or_BufferSource_or_String : ConvertibleToJSValue