fn append_ptrs_locked(&self, offset: &mut usize, vals: &[(*const u8, usize)]) -> Option<usize> {
        let mut end = *offset;
        for val in vals {
            end = u64_align!(end);
            end += val.1;
        }

        if (self.file_size as usize) < end {
            return None;
        }

        let pos = u64_align!(*offset);
        for val in vals {
            self.append_ptr(offset, val.0, val.1)
        }
        self.current_len.store(*offset, Ordering::Relaxed);
        Some(pos)
    }
/// Copy each value in `vals`, in order, to the first 64-byte boundary after position `offset`.
/// If there is sufficient space, then update `offset` and the internal `current_len` to the
/// first byte after the copied data and return the starting position of the copied data.
/// Otherwise return None and leave `offset` unchanged.
Copy each value in `vals`, in order, to the first 64-byte boundary after position `offset`.
If there is sufficient space, then update `offset` and the internal `current_len` to the
first byte after the copied data and return the starting position of the copied data.
Otherwise return None and leave `offset` unchanged.
Copy each value in ` vals ` in order to the first 64 - byte boundary after position ` offset ` . If there is sufficient space then update ` offset ` and the internal ` current_len ` to the first byte after the copied data and return the starting position of the copied data . Otherwise return None and leave ` offset ` unchanged .
fn append_ptrs_locked(&self, offset: &mut usize, vals: &[(*const u8, usize)]) -> Option<usize> {
        let mut end = *offset;
        for val in vals {
            end = u64_align!(end);
            end += val.1;
        }
        if (self.file_size as usize) < end {
            return None;
        }
        let pos = u64_align!(*offset);
        for val in vals {
            self.append_ptr(offset, val.0, val.1)
        }
        self.current_len.store(*offset, Ordering::Relaxed);
        Some(pos)
    }
fn append_ptrs_locked ( & self , offset : & mut usize , vals : & [ ( * const u8 , usize ) ] ) -> Option < usize > { let mut end = * offset ; for val in vals { end = u64_align ! ( end ) ; end += val . 1 ; } if ( self . file_size as usize ) < end { return None ; } let pos = u64_align ! ( offset ) ; for val in vals { self . append_ptr ( offset , val . 0 , val . 1 ) } self . current_len . store ( * offset , Ordering :: Relaxed ) ; Some ( pos ) }
Copy each value in `vals`, in order, to the first 64-byte boundary after position `offset`.
Copy each value in ` vals ` in order to the first 64 - byte boundary after position ` offset ` .
&self
offset
&mut usize
vals
&[(*const u8, usize)]