Lines Matching defs:buf
170 // If |buf| is invalidated, an empty MaybeLocal is returned, and nothing is
172 // If |buf| contains actual data, this method takes ownership of |buf|'s
173 // underlying buffer. However, |buf| itself can be reused even after this call,
178 MaybeStackBuffer<T>* buf) {
180 char* src = reinterpret_cast<char*>(buf->out());
181 const size_t len_in_bytes = buf->length() * sizeof(buf->out()[0]);
183 if (buf->IsAllocated())
185 else if (!buf->IsInvalidated())
191 if (buf->IsAllocated())
192 buf->Release();
359 int WriteFileSync(const char* path, uv_buf_t buf);