Beispiel #1
0
        /// <summary>
        ///   在index位置获取一个char类型的数据
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        public char GetChar(int index)
        {
            var data = GetData(index, 2);

            return(ByteUtil.ToChar(data));
        }
Beispiel #2
0
        public static char ReadChar(this Stream self)
        {
            var data = new byte[2];

            return(ByteUtil.ToChar(Read(self, data)));
        }
Beispiel #3
0
        /// <summary>
        ///   获取一个char类型的数据
        /// </summary>
        /// <returns></returns>
        public char GetChar()
        {
            var data = GetData(2);

            return(ByteUtil.ToChar(data));
        }