feat: use MemoryAllocator

This commit is contained in:
langhuihui
2024-04-03 17:01:18 +08:00
parent fe69b4bdd2
commit 2b84f0a134
34 changed files with 1153 additions and 130 deletions

View File

@@ -25,6 +25,10 @@ type RTMPData struct {
util.RecyclableMemory
}
func (avcc *RTMPData) GetSize() int {
return avcc.Length
}
func (avcc *RTMPData) Print() string {
return fmt.Sprintf("% 02X", avcc.Buffers.Buffers[0][:5])
}