PMemoryStream.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Digital Barriers plc. All rights reserved.
3  * Contact: http://www.digitalbarriers.com/
4  *
5  * This file is part of the Papillon SDK.
6  *
7  * You can't use, modify or distribute any part of this file without
8  * the explicit written agreements of Digital Barriers.
9  */
10 
15 #pragma once
16 #include <PByteStream.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
20 class PByteArray;
21 
28 class PAPILLON_API_CORE PMemoryStream : public PByteStream
29 {
30 public:
34  PMemoryStream();
35 
39  PMemoryStream(const char* data, papillon::int32 n);
40 
44  PMemoryStream(const PByteArray& buffer);
45 
49  virtual ~PMemoryStream();
50 
54  PByteArray GetByteArray() const;
55 };
56 
57 PAPILLON_END_NAMESPACE
The PByteArray class represents a resizable array of bytes.
Definition: PByteArray.h:40
The PMemoryStream class is a byte stream whose backing store is a PByteArray.
Definition: PMemoryStream.h:28
The PByteStream class is a generic byte stream (can be a memory stream or a file stream).
Definition: PByteStream.h:69
Class PByteStream: a generic view of a sequence of bytes.