aboutsummaryrefslogtreecommitdiff
path: root/src/fs/buffer.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-05-17 19:10:57 +0800
committerchai <chaifix@163.com>2018-05-17 19:10:57 +0800
commit70cdd89e887641b7423e5d4d05928d14ee014aba (patch)
tree248b87ae35197a9e5941e65ef20eea359e87a5ed /src/fs/buffer.h
parentdf4b054b8e8d00f7817daaa4cbf6961712cd0b75 (diff)
change file tree
Diffstat (limited to 'src/fs/buffer.h')
-rw-r--r--src/fs/buffer.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/fs/buffer.h b/src/fs/buffer.h
deleted file mode 100644
index d727d84..0000000
--- a/src/fs/buffer.h
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <string.h>
-
-namespace jin
-{
-namespace fs
-{
-
- /**
- * A file data buffer.
- */
- class Buffer
- {
- public:
-
- inline Buffer(): data(0), size(0)
- {
- }
-
- inline ~Buffer()
- {
- size = 0;
- delete[] data;
- }
-
- inline Buffer(void* d, int size)
- {
- data = new char(size);
- memcpy(data, d, size);
- }
-
- public:
-
- // data position in memory
- void* data;
-
- // data buffer size
- unsigned int size;
-
- };
-
-}
-} \ No newline at end of file