SwiftProtobufContiguousBytes
Conformance to this protocol gives users a way to provide their own “bag of bytes” types to be used for serialization and deserialization of protobufs. It provides a general interface for bytes since the Swift Standard Library currently does not provide such a protocol.
protocol SwiftProtobufContiguousBytes
Browse conforming typesBy conforming your own types to this protocol, you will be able to pass instances of said types directly to SwiftProtobuf.Message
’s deserialisation methods (i.e. init(contiguousBytes:)
for binary format and init(jsonUTF8Bytes:)
for JSON).