TAILIEUCHUNG - HandBooks Professional Java-C-Scrip-SQL part 147

Tham khảo tài liệu 'handbooks professional java-c-scrip-sql part 147', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Then we call BigPointerBlock SetMainObj ectNumber to set the entry in the big pointer block that indicates which main object it belongs to. This is needed when we are updating the free space list because each free space entry includes the number of the main object for that quantum. This is relevant because we do not share a quantum among several main objects to simplify the task of programs that recover as much data as possible from a quantum file that has become corrupted. The next step is to set up the header for the big pointer array. This contains the current element count the maximum element count and the last quantum that we ve added an element to of course the latter variable is initialized to NoQuantum as we have not yet added any data to this new object. Once we have set the header up we call QuantumBlock AddItem to add it to the big pointer block so that it will be accessible the next time we use the big pointer array. Now it s time to initialize the little pointer array for this object and the big pointer array that allows us to access the little pointer array. To start this process we calculate the number of little pointer blocks that we will need which is dependent on the number of elements in the object and the number of item references that fit in one block. Once we have determined that number we can create a big pointer array containing that number of quantum numbers and a temporary little pointer array that we will use to initialize each block in the little pointer array. We re up to the loop that initializes all of the blocks in the little pointer array. It begins by calling QuantumFile FindEmptyBlock to find an empty block that we can use for the little pointer array. Then we call QuantumFile SetFreeSpace to reserve this quantum for the current main object and mark it as Next we set the current element of the big pointer array to the quantum number of the quantum where we are storing the current little pointer array block. Now

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.