Ver código fonte

Kernel: Expose the underlying Region of a KBuffer

Andreas Kling 5 anos atrás
pai
commit
8047ff8205
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      Kernel/KBuffer.h

+ 3 - 0
Kernel/KBuffer.h

@@ -71,6 +71,9 @@ public:
         m_size = size;
     }
 
+    const Region& region() const { return *m_region; }
+    Region& region() { return *m_region; }
+
 private:
     explicit KBufferImpl(NonnullOwnPtr<Region>&& region, size_t size)
         : m_size(size)