NPRPC docs

function marshal_stream_struct

Swift

func marshal_stream_struct<T>(buffer: FlatBuffer, offset: Int, rootSize: Int, extraCapacity: Int = 128, value: T, marshalElement: (FlatBuffer, Int, T) -> Void)

Encodes a message as a stream chunk payload, growing buffer by rootSize plus extraCapacity for its variable parts. Used by generated code.

nprpc_swift/Sources/NPRPC/StreamReader.swift:240