PeerCastStation.FLV.RTMP.UserControlMessage.PingResponseMessage.CreateBody C# (CSharp) Method

CreateBody() private static method

private static CreateBody ( long local_timestamp ) : byte[]
local_timestamp long
return byte[]
      private static byte[] CreateBody(long local_timestamp)
      {
        var s = new MemoryStream();
        using (var writer=new RTMPBinaryWriter(s)) {
          writer.WriteUInt16((int)UserControlMessageType.PingResponse);
          writer.WriteUInt32(local_timestamp);
        }
        return s.ToArray();
      }
    }
UserControlMessage.PingResponseMessage