Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
Buffer.h
Go to the documentation of this file.
1 #pragma once
15 #include <Ultralight/Defines.h>
16 #include <Ultralight/RefPtr.h>
17 
18 namespace ultralight {
19 
23 class UExport Buffer : public RefCounted {
24 public:
28  static Ref<Buffer> Create(const void* data, size_t size);
29 
33  virtual void* data() = 0;
34 
38  virtual size_t size() const = 0;
39 
40 protected:
41  Buffer();
42  virtual ~Buffer();
43  Buffer(const Buffer&);
44  void operator=(const Buffer&);
45 };
46 
47 } // namespace ultralight
A non-nullable smart pointer.
Definition: RefPtr.h:64
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition: App.h:19
The header for all ref-counting utilities.
Interface for all ref-counted objects that will be managed using the Ref<> and RefPtr<> smart pointer...
Definition: RefPtr.h:53
A fixed-size byte container for passing data around.
Definition: Buffer.h:23