summaryrefslogtreecommitdiff
path: root/documentation/variables.html
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-08-26 13:08:39 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-08-26 13:08:39 +0200
commitf526c4c7a7ada1ab534ca0976c7b66718b9a5660 (patch)
tree68b4db309ee00d3b7ebc1743b4825057b3db7f28 /documentation/variables.html
parenta286c34777e48d59410e7511f52f4a6f08000ba3 (diff)
parent97bc6757346d394a4b7d5898983be298e0b0ea98 (diff)
fixed conflict
Diffstat (limited to 'documentation/variables.html')
-rw-r--r--documentation/variables.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/documentation/variables.html b/documentation/variables.html
index 98a6d49..dfc5b18 100644
--- a/documentation/variables.html
+++ b/documentation/variables.html
@@ -223,10 +223,10 @@ Php::Value readExample2(int fd)
// result variable
Php::Value result;
- // resize the buffer to 4096 bytes, the resize() method resizes
+ // resize the buffer to 4096 bytes, the reserve() method resizes
// the internal buffer to the appropriate size, and returns a pointer
// to the buffer
- char *buffer = result.resize(4096);
+ char *buffer = result.reserve(4096);
// read in the bytes directly into the just allocated buffer
ssize_t bytes = read(fd, buffer, 4096);
@@ -235,7 +235,7 @@ Php::Value readExample2(int fd)
// resize the buffer to the actual number of bytes in it (this
// is necessary, otherwise the PHP strlen() returns 4096 even
// when less bytes were available
- result.resize(bytes);
+ result.reserve(bytes);
// return the result
return result;