[Mona] FAT

バッファ本体とそのサイズを別管理するのがいい加減、いやになったのでBufferクラスをでっち上げて対応。
うーん。すっきり。

class Buffer {

 public:
    Buffer(dword size);
    ~Buffer();

 public:
    bool AllocOK() const {return this->buffer != NULL;}
    byte* GetBuffer() const {return this->buffer;}
    dword GetSize() const {return this->size;}

  private:
    byte* buffer;
    dword size;
};