Skip to content

Commit

Permalink
blob: add function size() (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 authored and Wu Tao committed Apr 2, 2019
1 parent 0048ae4 commit e946645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/dsn/utility/blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ class blob
const char *data() const noexcept { return _data; }

unsigned int length() const noexcept { return _length; }
unsigned int size() const noexcept { return _length; }

std::shared_ptr<char> buffer() const { return _holder; }

Expand Down

0 comments on commit e946645

Please sign in to comment.