Add a new reference to a buffer.
@param ref an existing reference to the buffer @param pmask a bitmask containing the allowable permissions in the new reference @return a new reference to the buffer with the same properties as the old, excluding any permissions denied by pmask
See Implementation
Add a new reference to a buffer.
@param ref an existing reference to the buffer @param pmask a bitmask containing the allowable permissions in the new reference @return a new reference to the buffer with the same properties as the old, excluding any permissions denied by pmask