Loading libs/binder/IMemory.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,10 @@ void* IMemory::fastPointer(const sp<IBinder>& binder, ssize_t offset) const return static_cast<char*>(base) + offset; } void* IMemory::unsecurePointer() const { return pointer(); } void* IMemory::pointer() const { ssize_t offset; sp<IMemoryHeap> heap = getMemory(&offset); Loading libs/binder/include/binder/IMemory.h +2 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,8 @@ public: // NOLINTNEXTLINE(google-default-arguments) virtual sp<IMemoryHeap> getMemory(ssize_t* offset=nullptr, size_t* size=nullptr) const = 0; void* unsecurePointer() const; // helpers void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const; void* pointer() const; Loading Loading
libs/binder/IMemory.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,10 @@ void* IMemory::fastPointer(const sp<IBinder>& binder, ssize_t offset) const return static_cast<char*>(base) + offset; } void* IMemory::unsecurePointer() const { return pointer(); } void* IMemory::pointer() const { ssize_t offset; sp<IMemoryHeap> heap = getMemory(&offset); Loading
libs/binder/include/binder/IMemory.h +2 −0 Original line number Diff line number Diff line Loading @@ -76,6 +76,8 @@ public: // NOLINTNEXTLINE(google-default-arguments) virtual sp<IMemoryHeap> getMemory(ssize_t* offset=nullptr, size_t* size=nullptr) const = 0; void* unsecurePointer() const; // helpers void* fastPointer(const sp<IBinder>& heap, ssize_t offset) const; void* pointer() const; Loading