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