tooLarge(function:file:line:)
Message is too large. Bytes and Strings have a max size of 2GB.
static func tooLarge(function: String = #function, file: String = #fileID, line: Int = #line) -> SwiftProtobufError
Message is too large. Bytes and Strings have a max size of 2GB.
static func tooLarge(function: String = #function, file: String = #fileID, line: Int = #line) -> SwiftProtobufError
s13SwiftProtobuf0aB5ErrorV20BinaryStreamDecodingO8tooLarge8function4file4lineACSS_SSSitFZ
What are these?K35M
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
enum BinaryStreamDecoding
Errors arising from decoding streams of binary messages. These errors have to do with the framing of the messages in the stream, or the stream as a whole.
struct SwiftProtobufError
A SwiftProtobuf specific error.
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct Int
A signed integer value type.
static func malformedLength(function: String = #function, file: String = #fileID, line: Int = #line) -> 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 = #function, file: String = #fileID, line: Int = #line) -> SwiftProtobufError
This isn’t really an error. InputStream
documents that hasBytesAvailable
may return True
if a read is needed to determine if there really are bytes available. So this “error” is thrown when a parse
or merge
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.