From 730e5dde39333cb2f63c72a7d7152bee5c4dbb05 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 8 Feb 2014 15:09:25 -0800 Subject: Implement AString --- src/common/socket.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common/socket.hpp') diff --git a/src/common/socket.hpp b/src/common/socket.hpp index 6d0ca01..e0847ac 100644 --- a/src/common/socket.hpp +++ b/src/common/socket.hpp @@ -9,7 +9,7 @@ # include -# include "../strings/fstring.hpp" +# include "../strings/astring.hpp" # include "../strings/vstring.hpp" # include "../strings/xstring.hpp" @@ -183,7 +183,7 @@ VString RFIFO_STRING(Session *s, size_t pos) return XString(begin, mid, nullptr); } inline -FString RFIFO_STRING(Session *s, size_t pos, size_t len) +AString RFIFO_STRING(Session *s, size_t pos, size_t len) { const char *const begin = static_cast(RFIFOP(s, pos)); const char *const end = begin + len; @@ -242,7 +242,7 @@ VString RBUF_STRING(const uint8_t *p, size_t pos) return XString(begin, mid, nullptr); } inline -FString RBUF_STRING(const uint8_t *p, size_t pos, size_t len) +AString RBUF_STRING(const uint8_t *p, size_t pos, size_t len) { const char *const begin = static_cast(RBUFP(p, pos)); const char *const end = begin + len; -- cgit v1.2.3-70-g09d2