00001 /*========================================================================== 00002 * Copyright (c) 2004 University of Massachusetts. All Rights Reserved. 00003 * 00004 * Use of the Lemur Toolkit for Language Modeling and Information Retrieval 00005 * is subject to the terms of the software license set forth in the LICENSE 00006 * file included with this software, and also available at 00007 * http://www.lemurproject.org/license.html 00008 * 00009 *========================================================================== 00010 */ 00011 00012 // 00013 // InternalFileBuffer 00014 // 00015 // 2004 November 24 -- tds 00016 // 00017 00018 #ifndef INDRI_INTERNALFILEBUFFER_HPP 00019 #define INDRI_INTERNALFILEBUFFER_HPP 00020 00021 #include "indri/Buffer.hpp" 00022 namespace indri 00023 { 00024 namespace file 00025 { 00026 00027 struct InternalFileBuffer { 00028 InternalFileBuffer( size_t length ) { 00029 buffer.grow(length); 00030 filePosition = 0; 00031 } 00032 00033 indri::utility::Buffer buffer; 00034 UINT64 filePosition; 00035 }; 00036 } 00037 } 00038 00039 #endif // INDRI_INTERNALFILEBUFFER_HPP