/* -*- tab-width: 4; -*- */1/* vi: set sw=2 ts=4 expandtab: */23/*4* Copyright 2010-2020 The Khronos Group Inc.5* SPDX-License-Identifier: Apache-2.06*/78/**9* @internal10* @file11* @~English12*13* @brief Interface of ktxStream for memory.14*15* @author Maksim Kolesin16* @author Georg Kolling, Imagination Technology17* @author Mark Callow, HI Corporation18*/1920#ifndef MEMSTREAM_H21#define MEMSTREAM_H2223#include "ktx.h"2425/*26* Initialize a ktxStream to a ktxMemStream with internally27* allocated memory. Can be read or written.28*/29KTX_error_code ktxMemStream_construct(ktxStream* str,30ktx_bool_t freeOnDestruct);31/*32* Initialize a ktxStream to a read-only ktxMemStream reading33* from an array of bytes.34*/35KTX_error_code ktxMemStream_construct_ro(ktxStream* str,36const ktx_uint8_t* pBytes,37const ktx_size_t size);38void ktxMemStream_destruct(ktxStream* str);3940KTX_error_code ktxMemStream_getdata(ktxStream* str, ktx_uint8_t** ppBytes);4142#endif /* MEMSTREAM_H */434445