#include <oskit/com/stream.h>OSKIT_COMDECL oskit_stream_lockregion(oskit_stream_t *f, oskit_u64_t offset, oskit_u64_t size, oskit_u32_t lock_type);
This method locks a range of this stream object, where the range starts at the specified byte offset and extends for the specified size bytes.
- f
- The object to lock.
- offset
- The starting byte offset of the range to be locked.
- size
- The length in bytes of the range.
- lock_type
- The type of lock to apply.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.