startIndex
TypeScriptget startIndex(): numberSwift declarationlet startIndex: IntThe position of the first element in a nonempty collection.
struct · iOS 26.0+ · SDK 27.1
struct BlockRegionA contiguous region of memory within a block buffer.
get startIndex(): numberSwift declarationlet startIndex: IntThe position of the first element in a nonempty collection.
withUnsafeBytes(body: ((arg0: ArrayBuffer) => unknown)): unknownSwift declarationfunc withUnsafeBytes<ResultType>(_ body: (UnsafeRawBufferPointer) throws -> ResultType) rethrows -> ResultTypeCalls the given closure with a pointer to the underlying bytes of the region’s contiguous storage.
withContiguousStorageIfAvailable(body: ((arg0: Uint8Array) => unknown)): (unknown) | nullSwift declarationfunc withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<UInt8>) throws -> R) rethrows -> R?Access contents of the buffer if available as contiguous memory block. This method calls body(buffer), where buffer is a pointer to the block buffers contiguous storage. If the contiguous storage doesn’t exist, the method doesn’t call body — it immediately returns nil.
get count(): numberSwift declarationvar count: Int { get }Number of bytes in the block region
get regions(): SDKHandleSwift declarationvar regions: CollectionOfOne<CMReadOnlyDataBlockBuffer.BlockRegion> { get }The single buffer that makes up this region.
get endIndex(): numberSwift declarationvar endIndex: Int { get }The position one greater than the last valid subscript argument.
subscript(position: number): numberSwift declarationsubscript(position: CMReadOnlyDataBlockBuffer.BlockRegion.Index) -> UInt8 { get }Accesses the data byte at the specified position.
No declarations were skipped in this snapshot.