Enumerationswift-protobuf 1.31.0SwiftProtobuf
Varint
Contains helper methods to varint-encode and decode integers.
enum VarintContains helper methods to varint-encode and decode integers.
enum Varintimport SwiftProtobufSupport library for Swift code generated by protoc-gen-swift.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
static func encodedSize(of value: Int32) -> Int Computes the number of bytes that would be needed to store a signed 32-bit varint, if it were treated as an unsigned integer with the same bit pattern.
static func encodedSize(of value: UInt32) -> Int Computes the number of bytes that would be needed to store a 32-bit varint.