diff options
author | Elliott Hughes <enh@google.com> | 2010-06-01 18:07:56 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-06-01 21:33:44 -0700 |
commit | 753dcd862b31e85766225590d90ba0b9f481176f (patch) | |
tree | d68b2557b6461bef431469af340c1d4507d43192 /include/ScopedUtfChars.h | |
parent | a11db893ab7fdae4c096345a4959a06f71381fc1 (diff) | |
download | libcore-753dcd862b31e85766225590d90ba0b9f481176f.zip libcore-753dcd862b31e85766225590d90ba0b9f481176f.tar.gz libcore-753dcd862b31e85766225590d90ba0b9f481176f.tar.bz2 |
Refactor some of the OSNetworkSystem stuff to more appropriate homes.
Also rewrite PlainDatagramSocketImpl.peek in terms of existing primitives
rather than requiring its own. I still don't see how it can get called, but
at least now it doesn't require its own native code.
Bug: 2686833
Change-Id: I0453add66dab4c7095ee2a3f51a49efbd1205598
Diffstat (limited to 'include/ScopedUtfChars.h')
-rw-r--r-- | include/ScopedUtfChars.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ScopedUtfChars.h b/include/ScopedUtfChars.h index 3051d3b..cb48bfa 100644 --- a/include/ScopedUtfChars.h +++ b/include/ScopedUtfChars.h @@ -51,6 +51,10 @@ public: return mUtfChars; } + size_t size() const { + return strlen(mUtfChars); + } + // Element access. const char& operator[](size_t n) const { return mUtfChars[n]; |