winamp/Src/nde/win/BinaryField.h

38 lines
1.1 KiB
C
Raw Permalink Normal View History

2024-09-24 12:54:57 +00:00
/* ---------------------------------------------------------------------------
Nullsoft Database Engine
--------------------
codename: Near Death Experience
--------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
BinaryField Class Prototypes
--------------------------------------------------------------------------- */
#ifndef __BINARYFIELD_H
#define __BINARYFIELD_H
#include "Field.h"
#include <bfc/platform/types.h>
class BinaryField : public Field
{
protected:
virtual void ReadTypedData(const uint8_t *, size_t len);
virtual void WriteTypedData(uint8_t *, size_t len);
virtual size_t GetDataSize(void);
virtual int Compare(Field *Entry);
virtual bool ApplyFilter(Field *Data, int flags);
void InitField(void);
uint8_t *Data;
size_t Size;
public:
~BinaryField();
BinaryField(const uint8_t *Data, int len);
BinaryField();
const uint8_t *GetData(size_t *len);
void SetData(const uint8_t *Data, size_t len);
};
#endif