您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

31 行
793 B

  1. using JT1078.Flv.Metadata;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Runtime.CompilerServices;
  5. using System.Text;
  6. [assembly: InternalsVisibleTo("JT1078.Flv.Test")]
  7. namespace JT1078.Flv.MessagePack
  8. {
  9. ref partial struct FlvMessagePackWriter
  10. {
  11. public void WriteAmf3(Amf3 amf3)
  12. {
  13. WriteByte(amf3.DataType);
  14. if(amf3.Amf3Metadatas!=null && amf3.Amf3Metadatas.Count > 0)
  15. {
  16. WriteInt32(amf3.Amf3Metadatas.Count);
  17. foreach(var item in amf3.Amf3Metadatas)
  18. {
  19. //根据数据类型
  20. WriteArray(item.ToBuffer());
  21. }
  22. }
  23. else
  24. {
  25. WriteInt32(0);
  26. }
  27. }
  28. }
  29. }