Beispiel #1
0
        /// <summary>
        /// Create the header data object from a buffer containing the header data
        /// </summary>
        /// <param name="buf">buffer containing the data</param>
        /// <param name="size">size of the data</param>
        public HeaderData(IntPtr buf, int size)
            : base(buf, size)
        {
            byte b;

            MSF       = new MinuteSecondFrame(Get8(0), Get8(1), Get8(2));
            b         = Get8(3);
            BlockType = (BlockTypeType)((b >> 5) & 0x07);
            DataType  = (DataTypeType)(b & 0x03);
        }
        /// <summary>
        /// Create the header data object from a buffer containing the header data
        /// </summary>
        /// <param name="buf">buffer containing the data</param>
        /// <param name="size">size of the data</param>
        public HeaderData(IntPtr buf, int size)
            : base(buf, size)
        {
            byte b ;

            MSF = new MinuteSecondFrame(Get8(0), Get8(1), Get8(2));
            b = Get8(3);
            BlockType = (BlockTypeType)((b >> 5) & 0x07);
            DataType = (DataTypeType)(b & 0x03);
        }