Beispiel #1
0
 /// <summary> void RTMPPacket_Free(RTMPPacket *p); </summary>
 public static void RTMPPacket_Free(RTMPPacket p)
 {
     if (p.Body != null)
     {
         // free(p.m_body - RTMP_MAX_HEADER_SIZE);
         p.Body = null;
     }
 }
Beispiel #2
0
 /// <summary> void RTMPPacket_Dump(RTMPPacket *p) </summary>
 public static void RTMPPacket_Dump(RTMPPacket p)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 /// <summary> int RTMPPacket_Alloc(RTMPPacket *p, int nSize) </summary>
 public static bool RTMPPacket_Alloc(RTMPPacket p, int nsize)
 {
     p.Body      = new byte[nsize]; // + RTMP.RTMP_MAX_HEADER_SIZE];
     p.BytesRead = 0;
     return(true);
 }