Commit Graph

4 Commits

Author SHA1 Message Date
Armando Montanez
f82d95b680 pw_stream: Allow staging data to MemoryWriter end
Changes the memory writer to use std::memmove to allow data to be staged
to the unused portion of a MemoryWriter's buffer before it is written.
This is useful for operations that require direct access to a buffer to
build data before it is flushed to a MemoryWriter.

No-Docs-Update-Reason: Optimization that shouldn't be advertised
Change-Id: I3728e50e30031d7f87db43981827ef799fbce217
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/40244
Reviewed-by: David Rogers <davidrogers@google.com>
Commit-Queue: Armando Montanez <amontanez@google.com>
2021-05-05 00:41:46 +00:00
Wyatt Hepler
7208cd9d90 pw_stream: Update CMake build
- Split the CMake build into separate libraries so that the socket
  stream code is not automatically built.
- Fix public/private deps in the GN build.
- Add pw_rpc/system_server/CMakeLists.txt.
- In the CMake presubmit step, install Nanopb and build CMake's pw_apps.

Change-Id: Id29673d5d26e30e1b196768b8667805ec3094e3e
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/27581
Reviewed-by: Armando Montanez <amontanez@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
2020-12-16 01:51:04 +00:00
Wyatt Hepler
0a6f763b12 CMake: Revamp CMake build
- Define CMake cache variables (similar to gn args) for facade backends.
- Create simple initial toolchain files for GCC and Clang.
- Misc updates to pigweed.cmake and pw_build/CMakeLists.txt.
- Add or expand various CMakeLists.txt files.
- Watch CMake files in watch.py to support using CMake in pw watch.

Change-Id: I490d157485d02811a11f6a3589a0508ea1851f58
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/22840
Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
2020-11-04 22:31:07 +00:00
David Rogers
9692257d24 pw_blob_store: Add write support
Add BlobStore write implementation
Add initial BlobStore tests.
Add missing CMake build files in dependency modules to unbreak CMake
build.

Still missing:
Cleanup validation checking
KVS handling/usage
Some better testing

Change-Id: Ie6b711598a917d7553b5a682d8ef36cdcc137303
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/16040
Commit-Queue: David Rogers <davidrogers@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
2020-08-25 19:36:51 +00:00