/* 7zMemInStream.h -- Memory input stream
** 2012 - Birunthan Mohanathas
**
** This file is public domain.
*/

#ifndef __7Z_MEMINSTREAM_H
#define __7Z_MEMINSTREAM_H

#include "7zTypes.h"

EXTERN_C_BEGIN

typedef struct
{
  ILookInStream s;
  const Byte *begin;
  const Byte *pos;
  const Byte *end;
} CMemInStream;

void MemInStream_Init(CMemInStream *p, const void *begin, size_t length);

EXTERN_C_END

#endif
