コード例 #1
0
ファイル: TWMWriter.cpp プロジェクト: UIKit0/DT3
void TWMWriter::end_export_section (BinaryFileStream &file, DTsize size_location)
{
    DTsize save_location = file.p();
    file.seek_p(size_location, Stream::FROM_BEGINNING);
    file << (DTint) (save_location-size_location-sizeof(DTint));
    file.seek_p(save_location, Stream::FROM_BEGINNING);
}
コード例 #2
0
ファイル: TWMWriter.cpp プロジェクト: UIKit0/DT3
DTsize TWMWriter::begin_export_section (BinaryFileStream &file, DTint section)
{
    file << section;
    DTsize size_location = file.p();
    file << (DTint) 0;
    
    return size_location;
}