Lines Matching refs:bytes
26 // Allocate a number of bytes.
27 virtual char* allocate(unsigned bytes) = 0;
28 // Allocate a larger number of bytes and copy the old buffer to the new one.
29 // bytes is an input and output parameter passing the old size of the buffer
32 virtual char* grow(unsigned* bytes) = 0;
39 char* allocate(unsigned bytes) override;
40 char* grow(unsigned* bytes) override;
54 char* allocate(unsigned bytes) override;
55 char* grow(unsigned* bytes) override;
70 char* allocate(unsigned bytes) override {
71 vector_->resize_no_init(bytes);
75 char* grow(unsigned* bytes) override {
76 unsigned new_bytes = *bytes * 2;
78 if (new_bytes <= *bytes) {
82 *bytes = new_bytes;