Method lrs::file::File::get_attr_buf

Gets an attribute of this file.

Syntax

impl File {
    fn get_attr_buf<S>(&self, name: S, val: &mut [u8]) -> Result<usize, Errno>
        where S: ToCString,
}

Arguments

NameDescription
name

The name of the attribute.

val

The buffer in which the attribute will be stored.

Return value

Returns the size of the attribute placed in the buffer.

See also