Lines Matching refs:buffer
86 * Asserts that the given body is a buffer source (either a string, array buffer, or typed array).
87 * Throws an error if the body is not a buffer source.
89 * @param {boolean} allowString - Whether or not to allow a string as a valid buffer source.
91 * @throws {ERR_INVALID_RETURN_PROPERTY_VALUE} If the body is not a buffer source.
102 `${allowString ? 'string, ' : ''}array buffer, or typed array`,
110 * Converts a buffer or buffer-like object to a string.
111 * @param {string | ArrayBuffer | ArrayBufferView} body - The buffer or buffer-like object to convert to a string.