コード例 #1
0
 public override ChannelFuture Write(object message)
 {
     if (message is ChannelBuffer)
     {
         ChannelBuffer buffer = ( ChannelBuffer )message;
         _receivedMessages.AddLast(buffer.duplicate());
     }
     return(immediateFuture);
 }
コード例 #2
0
 public override ChannelBuffer Duplicate()
 {
     return(_buffer.duplicate());
 }