circuitpython/shared/runtime/buffer_helper.h
2024-05-19 20:40:44 -04:00

12 lines
332 B
C

// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
//
// SPDX-License-Identifier: MIT
#pragma once
#include <stdint.h>
#include <string.h>
void normalize_buffer_bounds(int32_t *start, int32_t end, size_t *length);