function marshal_string
Swift
func marshal_string(buffer: FlatBuffer, offset: Int, string: String)
Marshal a Swift String as a flat vector of UTF-8 bytes (offset + count + payload).
Uses the string's contiguous UTF-8 storage when available — no intermediate Array.
nprpc_swift/Sources/NPRPC/Marshalling.swift:13