proc setStreamPeer*(self: PacketPeerStream; peer: Reference) {.gcsafe, locks: 0.}
proc setInputBufferMaxSize*(self: PacketPeerStream; maxSizeBytes: int64) {.gcsafe, locks: 0.}
proc setOutputBufferMaxSize*(self: PacketPeerStream; maxSizeBytes: int64) {.gcsafe, locks: 0.}