Пример #1
0
        /// <summary>
        /// 非托管内存数据流
        /// </summary>
        /// <param name="data">无需释放的数据</param>
        internal UnmanagedStreamBase(ref Pointer data)
        {
#if DEBUG
            data.DebugCheck();
#endif
            Data = data;
        }
Пример #2
0
        /// <summary>
        /// 转换成字符串
        /// </summary>
        /// <returns>字符串</returns>
        public override unsafe string ToString()
        {
#if DEBUG
            Data.DebugCheck();
#endif
            return(new string(Data.Char, 0, Data.CurrentIndex >> 1));
        }