コード例 #1
0
        public static T FromReader(BinaryReaderEx br, uint pos)
        {
            br.Jump(pos);
            T t = new T();

            t.Read(br);
            return(t);
        }
コード例 #2
0
        public static List <T> FromReader(BinaryReaderEx br, uint pos, uint count)
        {
            List <T> list = new List <T>();

            br.Jump(pos);

            for (int i = 0; i < count; i++)
            {
                T t = new T();
                t.Read(br);
                list.Add(t);
            }

            return(list);
        }