OpenNet
UserBuffer.h
Aller à la documentation de ce fichier.
1 
2 // Product OpenNet
3 
8 
9 #pragma once
10 
11 // Includes
13 
14 // ===== Includes ===========================================================
15 #include <OpenNet/Status.h>
16 
17 namespace OpenNet
18 {
19 
20  // Class
22 
29  class UserBuffer
30  {
31 
32  public:
33 
40  virtual OpenNet::Status Clear() = 0;
41 
56  virtual OpenNet::Status Read(unsigned int aOffset_byte, void * aOut, unsigned int aSize_byte) = 0;
57 
74  virtual OpenNet::Status Write(unsigned int aOffset_byte, const void * aIn, unsigned int aSize_byte) = 0;
75 
82  virtual void Delete();
83 
84  protected:
85 
86  UserBuffer();
87 
88  virtual ~UserBuffer();
89 
90  private:
91 
92  UserBuffer(const UserBuffer &);
93 
94  const UserBuffer & operator == (const UserBuffer &);
95 
96  };
97 
98 }
Definition: Adapter.h:19
La classe UserBuffer.
Definition: UserBuffer.h:29
virtual void Delete()
Détruire l'instance.
virtual OpenNet::Status Write(unsigned int aOffset_byte, const void *aIn, unsigned int aSize_byte)=0
Lire des données d'un UserBuffer.
virtual OpenNet::Status Clear()=0
Initialiser l'espace mé à 0.
virtual OpenNet::Status Read(unsigned int aOffset_byte, void *aOut, unsigned int aSize_byte)=0
Lire des données d'un UserBuffer.