/*********************************************************************
  Blosc - Blocked Shuffling and Compression Library

  Copyright (C) 2021  The Blosc Developers <blosc@blosc.org>
  https://blosc.org
  License: BSD 3-Clause (see LICENSE.txt)

  See LICENSE.txt for details about copyright and rights to use.
**********************************************************************/

#ifndef B2ND_B2ND_UTILS_H_
#define B2ND_B2ND_UTILS_H_

#include <b2nd.h>
#include <../plugins/plugin_utils.h>

#ifdef __cplusplus
extern "C" {
#endif


int b2nd_copy_buffer(int8_t ndim,
                     uint8_t itemsize,
                     void *src, const int64_t *src_pad_shape,
                     int64_t *src_start, const int64_t *src_stop,
                     void *dst, const int64_t *dst_pad_shape,
                     int64_t *dst_start);

#ifdef __cplusplus
}
#endif

#endif  // B2ND_B2ND_UTILS_H_
