vfs: check userland buffers before reading them.
[haiku.git] / src / apps / icon-o-matic / import_export / flat_icon / SourceExporter.h
blob2bbe1f23515cb3c4e4d39b90eec4132fed0d31ff
1 /*
2 * Copyright 2006-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
9 #ifndef SOURCE_EXPORTER_H
10 #define SOURCE_EXPORTER_H
12 #include "FlatIconExporter.h"
14 class SourceExporter : public FlatIconExporter {
15 public:
16 SourceExporter();
17 virtual ~SourceExporter();
19 // FlatIconExporter interface
20 virtual status_t Export(const Icon* icon,
21 BPositionIO* stream);
23 virtual const char* MIMEType();
25 private:
26 status_t _Export(const uint8* source,
27 size_t sourceSize,
28 BPositionIO* stream) const;
31 #endif // SOURCE_EXPORTER_H