コード例 #1
0
ファイル: PortMessage.cs プロジェクト: RoDaniel/featurehouse
 public PortMessage(PortMessage existingMessage, byte[] data)
 {
     using (var alloc = new MemoryAlloc(data.Length))
     {
         alloc.WriteBytes(0, data);
         this.InitializeMessage(existingMessage, alloc, (short)alloc.Size);
     }
 }
コード例 #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);
     }
 }