CType

sealed class CType(val number: Int)(source)

Inheritors

Constructors

Link copied to clipboard
protected constructor(number: Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data object CORD : FieldOptions.CType

The option ctype=CORD may be applied to a non-repeated field of type "bytes". It indicates that in C++, the data should be stored in a Cord instead of a string. For very large strings, this may reduce memory fragmentation. It may also allow better performance when parsing from a Cord, or when parsing with aliasing enabled, as the parsed Cord may then alias the original buffer.

Link copied to clipboard

Default mode.

Link copied to clipboard
Link copied to clipboard
data class UNRECOGNIZED(val number: Int) : FieldOptions.CType

Properties

Link copied to clipboard
open val number: Int