vfs: check userland buffers before reading them.
[haiku.git] / src / kits / storage / mime / MimeSnifferAddon.cpp
blob0a53ebceb212d5b7268cdc7b91127617a8d96941
1 /*
2 * Copyright 2006-2013, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
7 #include <MimeSnifferAddon.h>
10 // constructor
11 BMimeSnifferAddon::BMimeSnifferAddon()
15 // destructor
16 BMimeSnifferAddon::~BMimeSnifferAddon()
20 // MinimalBufferSize
21 size_t
22 BMimeSnifferAddon::MinimalBufferSize()
24 return 0;
27 // GuessMimeType
28 float
29 BMimeSnifferAddon::GuessMimeType(const char* fileName, BMimeType* type)
31 return -1;
34 // GuessMimeType
35 float
36 BMimeSnifferAddon::GuessMimeType(BFile* file, const void* buffer, int32 length,
37 BMimeType* type)
39 return -1;