rpc: speedup get_outs.bin

This commit is contained in:
moneromooo-monero 2018-11-07 21:13:00 +00:00
parent b37ce24cdd
commit fc98f7a0a1
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
8 changed files with 45 additions and 18 deletions

View file

@ -109,6 +109,8 @@ namespace epee
constexpr std::size_t size() const noexcept { return len; }
constexpr std::size_t size_bytes() const noexcept { return size() * sizeof(value_type); }
const T &operator[](size_t idx) const { return ptr[idx]; }
private:
T* ptr;
std::size_t len;