Beispiel #1
0
 public PortMessage(PortMessage existingMessage, byte[] data)
 {
     using (var alloc = new MemoryAlloc(data.Length))
     {
         alloc.WriteBytes(0, data);
         this.InitializeMessage(existingMessage, alloc, (short)alloc.Size);
     }
 }
Beispiel #2
0
 public PortMessage(PortMessage existingMessage, byte[] data)
 {
     using (var alloc = new MemoryAlloc(data.Length))
     {
         alloc.WriteBytes(0, data);
         this.InitializeMessage(existingMessage, alloc, (short)alloc.Size);
     }
 }