| 167 | } |
| 168 | |
| 169 | int64_t Writer::WriteImage2DData( Image2D &image2DHeader, Image2DType imageType, |
| 170 | Image2DProjection imageProjection, int64_t startPos, |
| 171 | void *pBuffer, int64_t byteCount ) |
| 172 | { |
| 173 | auto *buffer = static_cast<uint8_t *>( pBuffer ); |
| 174 | const auto sizeInBytes = static_cast<size_t>( byteCount ); |
| 175 | |
| 176 | const int64_t imageIndex = impl_->NewImage2D( image2DHeader ); |
| 177 | |
| 178 | const size_t written = impl_->WriteImage2DData( imageIndex, imageType, imageProjection, |
| 179 | buffer, startPos, sizeInBytes ); |
| 180 | |
| 181 | return static_cast<int64_t>( written ); |
| 182 | } |
| 183 | |
| 184 | int64_t Writer::NewImage2D( Image2D &image2DHeader ) |
| 185 | { |
nothing calls this directly
no test coverage detected