iree/vm/buffer.c
static iree_status_t iree_vm_buffer_map_ro(const iree_vm_buffer_t* buffer,
                                           iree_host_size_t offset,
                                           iree_host_size_t length,
                                           iree_host_size_t alignment,
                                           iree_const_byte_span_t* out_span) {
  // Always allowed regardless of access.
  return iree_vm_buffer_map(buffer, offset, length, alignment,
                            (uint8_t**)&out_span->data, &out_span->data_length);
}
// Maps a subrange to a span of bytes within the |buffer| for read-only access.
// |offset| and |length| must match the provided |alignment| (1, 2, 4, 8) and
// will be rounded toward zero if they do not.
Maps a subrange to a span of bytes within the |buffer| for read-only access.
Maps a subrange to a span of bytes within the |buffer| for read - only access .
static iree_status_t iree_vm_buffer_map_ro(const iree_vm_buffer_t* buffer,
                                           iree_host_size_t offset,
                                           iree_host_size_t length,
                                           iree_host_size_t alignment,
                                           iree_const_byte_span_t* out_span) {
  return iree_vm_buffer_map(buffer, offset, length, alignment,
                            (uint8_t**)&out_span->data, &out_span->data_length);
}
static iree_status_t iree_vm_buffer_map_ro ( const iree_vm_buffer_t * buffer , iree_host_size_t offset , iree_host_size_t length , iree_host_size_t alignment , iree_const_byte_span_t * out_span ) { return iree_vm_buffer_map ( buffer , offset , length , alignment , ( uint8_t * * ) & out_span -> data , & out_span -> data_length ) ; }
Maps a subrange to a span of bytes within the |buffer| for read-only access.
Maps a subrange to a span of bytes within the |buffer| for read - only access .
// Always allowed regardless of access.