Static Methodswift-protobuf 1.28.1SwiftProtobuf
tooLarge(function:file:line:)
Message is too large. Bytes and Strings have a max size of 2GB.
SwiftProtobufError.swift:190static func tooLarge(function: String = #function, file: String = #fileID, line: Int = #line) -> SwiftProtobufError
Other members in extension
Type members
static func malformedLength(function: String, file: String, line: Int
) -> SwiftProtobufError While attempting to read the length of a message on the stream, the bytes were malformed for the protobuf format.
static func noBytesAvailable(function: String, file: String, line: Int
) -> SwiftProtobufError This isn’t really an error.
InputStream
documents thathasBytesAvailable
may returnTrue
if a read is needed to determine if there really are bytes available. So this “error” is thrown when aparse
ormerge
fails because there were no bytes available. If this is raised, the callers should decide via what ever other means are correct if the stream has completely ended or if more bytes might eventually show up.