Chapter 2. Direct Data Access

Table of Contents

2.1. Introduction
2.2. Basic usage
2.3. Non-dense blocks
2.4. Requesting a specific data layout

2.1. Introduction

While views and blocks provide a powerful abstraction to handle data inside the Sourcery VSIPL++ API, it may be necessary to access the raw data, for example to pass them to third-party libraries or legacy code that requires data to be cast into different types.

To be able to cast Blocks into third-party types, without being required to copy the data, Sourcery VSIPL++ provides a Direct Data Access API.

Unless stated otherwise, all of the types discussed here are part of the vsip_csl::dda namespace.