Lines Matching defs:buffer
628 // Double the buffer capacity up to limit. In case it already has
668 // The buffer must be large enough to store the absolute pathname plus
671 // and double the buffer size upon every error
679 // ERANGE means buffer was too small to store directory name
685 // Trigger the internal buffer resizing logic.
1006 /// Get the host name and store it in an internally allocated buffer, returning an
1011 /// store it in an internal buffer, returning it as an `OsString` if successful.
1022 let mut buffer: Vec<u8> = Vec::with_capacity(256);
1023 let ptr = buffer.as_mut_ptr() as *mut c_char;
1024 let len = buffer.capacity() as size_t;
1029 buffer.as_mut_ptr().wrapping_add(len - 1).write(0); // ensure always null-terminated
1030 let len = CStr::from_ptr(buffer.as_ptr() as *const c_char).len();
1031 buffer.set_len(len);
1033 OsString::from_vec(buffer)
1532 // This prevents a potential buffer over-read if the number of groups
1534 // number of groups beyond the capacity of the buffer.
1540 // groups has changed since the first call to getgroups() and the buffer is
1557 // EINVAL indicates that the buffer size was too
1678 // BSD systems will still fill the groups buffer with as many
1960 /// user-supplied buffer of unspecified size, including the terminating null
1998 /// Recommended file transfer buffer alignment.
3136 // Trigger the internal buffer resizing logic.
3260 // Trigger the internal buffer resizing logic.