projects
/
iotcloud.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d60b257
)
bytebuffer
author
bdemsky
<bdemsky@uci.edu>
Fri, 2 Mar 2018 19:37:51 +0000
(11:37 -0800)
committer
bdemsky
<bdemsky@uci.edu>
Fri, 2 Mar 2018 19:37:51 +0000
(11:37 -0800)
version2/src/C/ByteBuffer.h
patch
|
blob
|
history
diff --git
a/version2/src/C/ByteBuffer.h
b/version2/src/C/ByteBuffer.h
index 89156066d19b33445a48e7e1c6ca61e4f0cdd0bd..7b8d2e4ed9c71295af4e6761aaedd7cdc6d7e039 100644
(file)
--- a/
version2/src/C/ByteBuffer.h
+++ b/
version2/src/C/ByteBuffer.h
@@
-15,6
+15,11
@@
public:
void position(int32_t newPosition);
Array<char> *array();
private:
+ ByteBuffer(Array<char> *array);
+ friend ByteBuffer *ByteBuffer_wrap(Array<char> *array);
+ friend ByteBuffer *ByteBuffer_allocate(uint size);
+ Array<char> *buffer;
+ uint offset;
};
ByteBuffer *ByteBuffer_wrap(Array<char> *array);
ByteBuffer *ByteBuffer_allocate(uint size);