Required Instance Methodswift-protobuf 1.28.1SwiftProtobuf
withUnsafeBytes(_:)
Calls the given closure with the contents of underlying storage.
SwiftProtobufContiguousBytes.swift:44func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R
Other requirements
Type members
init<S>(S
) An initializer for a bag of bytes type, given a sequence of bytes.
init(repeating: UInt8, count: Int
) An initializer for a bag of bytes type.
Instance members
var count: Int
The number of bytes in the bag of bytes.
func withUnsafeMutableBytes<R>((UnsafeMutableRawBufferPointer) throws -> R
) rethrows -> R Calls the given closure with the contents of underlying storage.