aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Filesystem/Buffer.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-23 12:23:58 +0800
committerchai <chaifix@163.com>2018-10-23 12:23:58 +0800
commit40fc27154fe754181934dc7ee31375e6bdfb33fc (patch)
tree897ad98d759bc308ef66561181ba88b85f2ccd47 /src/libjin/Filesystem/Buffer.h
parent1480c9445100075c9e1a894eb07c0ef727b509a1 (diff)
*merge from minimal
Diffstat (limited to 'src/libjin/Filesystem/Buffer.h')
-rw-r--r--src/libjin/Filesystem/Buffer.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/libjin/Filesystem/Buffer.h b/src/libjin/Filesystem/Buffer.h
deleted file mode 100644
index 1d72083..0000000
--- a/src/libjin/Filesystem/Buffer.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef __JIN_BUFFER_H
-#define __JIN_BUFFER_H
-
-#include <string.h>
-
-namespace jin
-{
-namespace filesystem
-{
-
- class Buffer
- {
- public:
-
- inline Buffer(): data(0), size(0)
- {
- }
-
- inline Buffer(const Buffer& src)
- {
- delete data;
- size = src.size;
- data = new char[size];
- memcpy(data, src.data, size);
- }
-
- inline Buffer(void* d, int s)
- {
- data = new char(size);
- memcpy(data, d, size);
- size = s;
- }
-
- inline ~Buffer()
- {
- size = 0;
- delete[] data;
- }
-
- public:
-
- // data position in memory
- void* data;
-
- // data buffer size
- unsigned int size;
-
- };
-
-}
-}
-
-#endif \ No newline at end of file