WriteValue() 공개 메소드

public WriteValue ( AMFValue value ) : void
value AMFValue
리턴 void
예제 #1
0
 private static byte[] CreateBody(string property_name, IEnumerable<AMFValue> arguments)
 {
     var s = new MemoryStream();
       using (var writer=new AMF0Writer(s)) {
     writer.WriteString(property_name);
     foreach (var arg in arguments) {
       writer.WriteValue(arg);
     }
       }
       return s.ToArray();
 }
예제 #2
0
   private static byte[] CreateBody(
 string command_name,
 int transaction_id,
 AMFValue command_object,
 IEnumerable<AMFValue> arguments)
   {
       var s = new MemoryStream();
         using (var writer=new AMF0Writer(s)) {
       writer.WriteString(command_name);
       writer.WriteNumber(transaction_id);
       writer.WriteValue(command_object);
       if (arguments!=null) {
         foreach (var arg in arguments) {
       writer.WriteValue(arg);
         }
       }
         }
         return s.ToArray();
   }