- 12 Jun, 2018 1 commit
-
-
Harris Hancock authored
Reading an unbounded amount of data from a stream is a potential DoS vector. To manage this risk, readAllText() and readAllBytes() now accept a `limit` parameter. For source backwards-compatibility, this limit defaults to kj::maxValue.
-
- 04 Jun, 2018 1 commit
-
-
Kenton Varda authored
Similar methods already exist on AsyncInputStream.
-
- 11 Jan, 2018 1 commit
-
-
Kenton Varda authored
@kloepper pointed out a while back that every compiler you've ever heard of supports this. Plus, it's more concise, it's not prone to copy-paste errors, and it looks nicer. At the time I wanted to remain consistent and I didn't feel like spending the time to update all my existing code. But, every time I've added a new header since I've cursed the include guard, so I finally broke down and changed it.
-
- 21 Sep, 2017 1 commit
-
-
Kenton Varda authored
-
- 03 Jan, 2017 1 commit
-
-
Ross Light authored
These methods are useful if you're receiving a generic stream in application code and would like to check some non-stream behavior about the file (e.g. stat or isatty). Of course, downcasting can fail and code should not rely on the file descriptor being available.
-
- 07 Nov, 2016 1 commit
-
-
Kenton Varda authored
-
- 04 Mar, 2016 1 commit
-
-
Kenton Varda authored
-
- 28 Apr, 2015 1 commit
-
-
David Renshaw authored
-
- 07 Jan, 2015 1 commit
-
-
Kenton Varda authored
-
- 05 Jan, 2015 1 commit
-
-
Morten Hustveit authored
-
- 09 Dec, 2014 1 commit
-
-
Kenton Varda authored
This is not currently used, but eventually we'll use this to support efficient inter-thread messaging. That said, I've decided that inter-thread messaging is complicated and I don't want to work on it right now.
-
- 22 Nov, 2014 1 commit
-
-
Kenton Varda authored
This prevents the compiler from reporting warnings in these headers while compiling application code. Hopefully this will stem the never-ending stream of complaints from people who enable pedantic warnings.
-
- 20 Jun, 2014 1 commit
-
-
Kenton Varda authored
For portions currently copyright by Kenton (most of it), transfer copyright to Sandstorm Development Group, Inc. (Kenton's company). The license change is practically meaningless, as MIT and BSD 2-clause are legally equivalent. However, the BSD 2-clause license is sometimes confused for its ugly siblings, BSD 3-clause and BSD 4-clause. The MIT license is more immediately recognizeable for what it is. Rémy Blank and Jason Choy (the two non-trivial contributors) are on record as approving this change: https://groups.google.com/d/msg/capnproto/xXDd2HUOCcc/gbe_COIuXKYJ
-
- 13 Mar, 2014 1 commit
-
-
Kenton Varda authored
-
- 14 Nov, 2013 1 commit
-
-
Kenton Varda authored
-
- 03 Aug, 2013 1 commit
-
-
Kenton Varda authored
Refactor compiler binary into a multi-tool with sub-commands like 'compile' and 'decode'. The latter dynamically decodes binary input to text based on a provided schema file.
-
- 12 Jun, 2013 1 commit
-
-
Kenton Varda authored
Enable some useful Clang warnings, fix some bugs it detected. Especially, eliminate all dynamic initializers.
-
- 07 Jun, 2013 2 commits
-
-
Kenton Varda authored
Mark every destructor "noexcept(false)" unless it is very clearly noexcept. The change in C++11 making destructors default-noexcept was a mistake.
-
Kenton Varda authored
Add mechanism for catching exceptions that has limited use even with -fno-exceptions, as well as a mechanism to detect when a destructor is called during unwind and to avoid throwing in these situations.
-
- 31 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 30 May, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 29 May, 2013 2 commits
-
-
Kenton Varda authored
-
Kenton Varda authored
-
- 23 May, 2013 1 commit
-
-
Kenton Varda authored
-
- 28 Mar, 2013 1 commit
-
-
Kenton Varda authored
-