예제 #1
0
        public static PooledNetworkReader GetReader(ArraySegment <byte> segment)
        {
            // grab from pool & set buffer
            PooledNetworkReader reader = Pool.Take();

            reader.SetBuffer(segment);
            return(reader);
        }
예제 #2
0
        public static PooledNetworkReader GetReader(byte[] bytes)
        {
            // grab from pool & set buffer
            PooledNetworkReader reader = Pool.Take();

            reader.SetBuffer(bytes);
            return(reader);
        }