History log of /6.6.0/platform/include/platform/sized_buffer.h (Results 1 - 12 of 12)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.1, v7.0.0, v6.5.1, v6.0.3, v5.5.4
# 1a6af9b4 08-Mar-2019 Trond Norbye <trond.norbye@gmail.com>

Include what you use

Remove platform/platform.h

Change-Id: I593b9124c79660566b4e316a2e5f852351f3ded9
Reviewed-on: http://review.couchbase.org/106046
Reviewed-by: Dave Rigby

Include what you use

Remove platform/platform.h

Change-Id: I593b9124c79660566b4e316a2e5f852351f3ded9
Reviewed-on: http://review.couchbase.org/106046
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# a527ec24 25-Jan-2019 Dave Rigby <daver@couchbase.com>

Replace <?stream> includes with <iosfwd> where possible

In header files which only refer to types in the <?stream> headers
(such as std::stringstream, std::ostream, ...) we can avoid inc

Replace <?stream> includes with <iosfwd> where possible

In header files which only refer to types in the <?stream> headers
(such as std::stringstream, std::ostream, ...) we can avoid including
the costly full <?stream> header and instead use <iosfwd> which is
~10x smaller.

Also de-inline operator<<() for const_char_buffer to avoid including
<ostream> from sized_buffer.h.

Change-Id: If16704c59a9c739d9765867cc496164df97931d7
Reviewed-on: http://review.couchbase.org/104063
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@couchbase.com>

show more ...


# b7d2442d 11-Oct-2018 Richard de Mellow <richard.demellow@couchbase.com>

MB-31510 Add put-to operator for cb::const_char_buffer

This operator will allow cb::const_char_buffer to
be output to a std::ostream.

Change-Id: Ic776ebc59da4a2fb275ec2587a2317a

MB-31510 Add put-to operator for cb::const_char_buffer

This operator will allow cb::const_char_buffer to
be output to a std::ostream.

Change-Id: Ic776ebc59da4a2fb275ec2587a2317ab425aa634
Reviewed-on: http://review.couchbase.org/100519
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.5.0, v4.6.5
# e594d288 01-Feb-2018 Trond Norbye <trond.norbye@gmail.com>

gcc7: Don't inline to_string(cb::const_char_buffer)

gcc7 complains if it encounters this static inline before seeing
the one in kv_engine (for error codes) as it is not static inline.

gcc7: Don't inline to_string(cb::const_char_buffer)

gcc7 complains if it encounters this static inline before seeing
the one in kv_engine (for error codes) as it is not static inline.

Change-Id: I116c89b229903506f0a777daa33abf6d501606c9
Reviewed-on: http://review.couchbase.org/88699
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.0.0
# 36559ef0 05-Jun-2017 Will Gardner <willg@rdner.io>

Add user-defined literal for const_char_buffer

C++11 introduces user defined literals and Windows finally
supports them.

This patch adds the literal operator ""_ccb for creating

Add user-defined literal for const_char_buffer

C++11 introduces user defined literals and Windows finally
supports them.

This patch adds the literal operator ""_ccb for creating
objects of cb::const_char_buffer from string literals.

Example:

namespace Collections {
const auto SystemEventPrefix = "$collections"_ccb;
}

The literal is prefixed with '_' as required by the language
specification. The literal is not placed in a namespace like the
standard library literals since we are not likely to encounter
naming conflicts within KV-Engine and it makes it easier to use
the literal in headers (where we typically ban `using namespace`
declarations).

Change-Id: I3048deb9858e280ccdd88f76fa89bf5038c38662
Reviewed-on: http://review.couchbase.org/79070
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 6486787e 05-Jun-2017 Will Gardner <willg@rdner.io>

Modernize sized_buffer

Liberally constexprs sized_buffer and uses constructor inheritance.

Change-Id: I2e1c5816ae01add4b0c4a9b2cee7a403a8b49a8e
Reviewed-on: http://review.couchb

Modernize sized_buffer

Liberally constexprs sized_buffer and uses constructor inheritance.

Change-Id: I2e1c5816ae01add4b0c4a9b2cee7a403a8b49a8e
Reviewed-on: http://review.couchbase.org/79052
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# a359b10d 17-Mar-2017 Dave Rigby <daver@couchbase.com>

const_char_buffer: add operator== with 'const char*'

Add an equality operator between a const_char_buffer and a const char*
to simplify working with const_char_buffer.

Change-Id

const_char_buffer: add operator== with 'const char*'

Add an equality operator between a const_char_buffer and a const char*
to simplify working with const_char_buffer.

Change-Id: Ibe4af3dcea17514a6206695636565697fe6d5ffe
Reviewed-on: http://review.couchbase.org/75349
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# b87422c1 10-Feb-2017 Jim Walker <jim@couchbase.com>

C-string construction for const_char_buffer

The previous patch included the null-terminator, which depending on
the usage is correct (i.e. sizeof would include null). However
when co

C-string construction for const_char_buffer

The previous patch included the null-terminator, which depending on
the usage is correct (i.e. sizeof would include null). However
when comparing the const_char_buffer against std::string we get
a mismatch...

E.g. the following failed, so we must not include the null .

const char* s = "hello";
std::string str(s);
cb::const_char_buffer ccb1(str);
cb::const_char_buffer ccb2(s);
EXPECT_EQ(ccb1, ccb2);

Change-Id: I6c8e89f01946596780e0c14db9621660ebdeef2b
Reviewed-on: http://review.couchbase.org/73504
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# d872ee05 09-Feb-2017 Jim Walker <jim@couchbase.com>

Add C-string construction to const_char_buffer

Declare const_char_buffer as subclass with constructor inheritance
and define c-string (null terminated char array) as construction
met

Add C-string construction to const_char_buffer

Declare const_char_buffer as subclass with constructor inheritance
and define c-string (null terminated char array) as construction
method.

Change-Id: If2ac835b66fb28863c3e93ca43e789b4959d419b
Reviewed-on: http://review.couchbase.org/73452
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 9353d943 09-Dec-2016 WillGardner <willg@rdner.io>

Expand sized_buffer to be an STL-like container

Adds methods, typedefs and comparison functions to sized_buffer to
replicate the API of STL containers. In particular the API of
std::

Expand sized_buffer to be an STL-like container

Adds methods, typedefs and comparison functions to sized_buffer to
replicate the API of STL containers. In particular the API of
std::string_view (from the upcoming C++17 spec).

This includes conversions from std::string and std::vector. It also
includes a conversion from non-const buffer to a const one. e.g.

cb::sized_buffer<const char> buf = cb::sized_buffer<char>();

Change-Id: I9bb203fea278c1b3f5e92339b06f8570fa386ef6
Reviewed-on: http://review.couchbase.org/70836
Reviewed-by: Jim Walker <jim@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: buildbot <build@couchbase.com>

show more ...


# 705a68ff 08-Dec-2016 Trond Norbye <trond.norbye@gmail.com>

Add == operator to sized_buffer

The == operator returns true if the two objects contains the
same value (which may be stored at a different address).

Change-Id: If5b8961c7d342e2

Add == operator to sized_buffer

The == operator returns true if the two objects contains the
same value (which may be stored at a different address).

Change-Id: If5b8961c7d342e2c62aecb0c57bb07e6dd393980
Reviewed-on: http://review.couchbase.org/70801
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# ca380db4 25-Nov-2016 Trond Norbye <trond.norbye@gmail.com>

Refactor: add sized_buffer.h from memcached

Change-Id: I99f90a618ceb1985e530fa8bc894fa6d0e383d0e
Reviewed-on: http://review.couchbase.org/70361
Tested-by: buildbot <build@couchbase.c

Refactor: add sized_buffer.h from memcached

Change-Id: I99f90a618ceb1985e530fa8bc894fa6d0e383d0e
Reviewed-on: http://review.couchbase.org/70361
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...