Exemple #1
0
        /// <summary>
        /// </summary>
        /// <param name="writer">
        /// </param>
        /// <param name="bits">
        /// </param>
        internal void Write(Stream writer, BitAccess bits)
        {
            bits.MinCapacity(56);
            bits.WriteBytes(this.magic);         // 0..31
            bits.WriteInt32(this.pageSize);      // 32..35
            bits.WriteInt32(this.freePageMap);   // 36..39
            bits.WriteInt32(this.pagesUsed);     // 40..43
            bits.WriteInt32(this.directorySize); // 44..47
            bits.WriteInt32(this.zero);          // 48..51
            bits.WriteInt32(this.directoryRoot); // 52..55

            writer.Seek(0, SeekOrigin.Begin);
            bits.WriteBuffer(writer, 56);
        }
Exemple #2
0
        /// <summary>
        /// </summary>
        /// <param name="writer">
        /// </param>
        /// <param name="bits">
        /// </param>
        internal void Write(Stream writer, BitAccess bits)
        {
            bits.MinCapacity(56);
            bits.WriteBytes(this.magic); // 0..31
            bits.WriteInt32(this.pageSize); // 32..35
            bits.WriteInt32(this.freePageMap); // 36..39
            bits.WriteInt32(this.pagesUsed); // 40..43
            bits.WriteInt32(this.directorySize); // 44..47
            bits.WriteInt32(this.zero); // 48..51
            bits.WriteInt32(this.directoryRoot); // 52..55

            writer.Seek(0, SeekOrigin.Begin);
            bits.WriteBuffer(writer, 56);
        }