3rdparty/licenseReport: Add seperate LGPL checks
[haiku.git] / src / add-ons / media / media-add-ons / mixer / ByteSwap.h
blobbba176a0d1dfb12cb218418535ed702a69bdf813
1 /*
2 * Copyright 2003-2007 Marcus Overhagen
3 * Copyright 2007 Haiku Inc. All rights reserved.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef _BYTE_SWAP_H
7 #define _BYTE_SWAP_H
10 #include <SupportDefs.h>
13 class ByteSwap {
14 public:
15 ByteSwap(uint32 format);
16 ~ByteSwap();
18 void Swap(void *buffer, size_t bytecount);
20 private:
21 void (*fFunc)(void *, size_t);
25 inline void
26 ByteSwap::Swap(void *buffer, size_t bytecount)
28 (*fFunc)(buffer, bytecount);
31 #endif // _BYTE_SWAP_H