SetData() 공개 메소드

Gets or sets a reference to the underlying byte array that holds this payloads data. Data is not copied.
public SetData ( byte value ) : void
value byte
리턴 void
예제 #1
0
 public override Payload Encode(char[] buffer, int offset, int length)
 {
     Payload result = new Payload();
     float payload = Single.Parse(new string(buffer, offset, length)); // TODO: improve this so that we don't have to new Strings
     byte[] bytes = PayloadHelper.EncodeFloat(payload);
     result.SetData(bytes);
     return result;
 }
예제 #2
0
 public override Payload Encode(char[] buffer, int offset, int length)
 {
     Payload result = new Payload();
     int payload = ArrayUtil.ParseInt(buffer, offset, length);//TODO: improve this so that we don't have to new Strings
     byte[] bytes = PayloadHelper.EncodeInt(payload);
     result.SetData(bytes);
     return result;
 }