Пример #1
0
 /// <summary>
 /// 根据数据的大小,自动判断段大小
 /// </summary>
 /// <param name="dataLength"></param>
 /// <returns></returns>
 private IPoolItem <ByteArray> BorrowBytes(int dataLength)
 {
     return(BorrowBytes(SegmentSize.GetAdviceSize(dataLength)));
 }
Пример #2
0
 internal ByteArray(int dataLength)
     : this(SegmentSize.GetAdviceSize(dataLength))
 {
 }