misc/libphysfs/lzma/C/Archive/7z/7zBuffer.h
author antonc27 <antonc27@mail.ru>
Fri, 16 Mar 2018 19:17:20 +0100
branchios-develop
changeset 13229 f62ea2a45f47
parent 12213 bb5522e88ab2
permissions -rw-r--r--
- Hide 'Campaign' button (not ready on iOS...)

/* 7zBuffer.h */

#ifndef __7Z_BUFFER_H
#define __7Z_BUFFER_H

#include <stddef.h>
#include "../../Types.h"

typedef struct _CSzByteBuffer
{
  size_t Capacity;
  Byte *Items;
}CSzByteBuffer;

void SzByteBufferInit(CSzByteBuffer *buffer);
int SzByteBufferCreate(CSzByteBuffer *buffer, size_t newCapacity, void * (*allocFunc)(size_t size));
void SzByteBufferFree(CSzByteBuffer *buffer, void (*freeFunc)(void *));

#endif