Required Instance Propertyswift-protobuf 1.28.1SwiftProtobuf
count
The number of bytes in the bag of bytes.
SwiftProtobufContiguousBytes.swift:36var count: Int { get }
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
func withUnsafeBytes<R>((UnsafeRawBufferPointer) throws -> R
) rethrows -> R Calls the given closure with the contents of underlying storage.
func withUnsafeMutableBytes<R>((UnsafeMutableRawBufferPointer) throws -> R
) rethrows -> R Calls the given closure with the contents of underlying storage.