GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / svl / source / numbers / numhead.hxx
blob86e7535f760e644128c5d39532929e1de0864acd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_SVL_SOURCE_NUMBERS_NUMHEAD_HXX
21 #define INCLUDED_SVL_SOURCE_NUMBERS_NUMHEAD_HXX
23 #include <tools/stream.hxx>
25 // This header contains size measures for various objects
27 class ImpSvNumMultipleReadHeader
29 private:
30 SvStream& rStream;
31 char* pBuf;
32 SvMemoryStream* pMemStream;
33 sal_uLong nEndPos;
34 sal_uLong nEntryEnd;
36 public:
37 ImpSvNumMultipleReadHeader(SvStream& rNewStream);
38 ~ImpSvNumMultipleReadHeader();
40 void StartEntry();
41 void EndEntry();
42 sal_uLong BytesLeft() const;
45 class ImpSvNumMultipleWriteHeader
47 private:
48 SvStream& rStream;
49 SvMemoryStream aMemStream;
50 sal_uLong nDataPos;
51 sal_uInt32 nDataSize;
52 sal_uLong nEntryStart;
54 public:
55 ImpSvNumMultipleWriteHeader(SvStream& rNewStream, sal_uLong nDefault = 0);
56 ~ImpSvNumMultipleWriteHeader();
58 void StartEntry();
59 void EndEntry();
62 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */