Closed 3d0c closed 5 years ago
This pull request removed the send receive api introduced in 68647d5, why?
I guess you mean following methods:
func (p *Packet) Frames(cc *CodecCtx) (*Frame, error)
and
func (p *Packet) ReceiveFrame(cc *CodecCtx) (*Frame, int)
I just moved encode/decode routines into Codec Context, it has now better error handling, supports multiple frames and codec drain (pass nil instead of frame).
Thanks! I failed to see that, my apologies.
Various memory leaks has been fixed. If you still face some, please refer to "examples/stress.go" to see how to proper cleanup allocated instances.