diff options
author | Elliott Hughes <enh@google.com> | 2023-08-11 00:05:04 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-08-11 00:05:04 +0000 |
commit | 4e7c6460d73c00031288165da053692764abbeb1 (patch) | |
tree | f98d11d6a158167e19fc9141c79d877280a616a6 /src/processor/simple_serializer.h | |
parent | 8d0176459cfc11e28e9427a7eadcf7a42f654f62 (diff) | |
parent | c3c25b3748e23f22d7eb5c0cf6ed671259a25aa0 (diff) | |
download | google-breakpad-4e7c6460d73c00031288165da053692764abbeb1.tar.gz |
Upgrade google-breakpad to v2023.01.27 am: 332a4371ed am: c3c25b3748
Original change: https://android-review.googlesource.com/c/platform/external/google-breakpad/+/2704174
Change-Id: Id4cbd71ede58b445f8d99dbad585207ef2b97bef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'src/processor/simple_serializer.h')
-rw-r--r-- | src/processor/simple_serializer.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/processor/simple_serializer.h b/src/processor/simple_serializer.h index 275f51ce..bd6cc84c 100644 --- a/src/processor/simple_serializer.h +++ b/src/processor/simple_serializer.h @@ -1,5 +1,4 @@ -// Copyright (c) 2010, Google Inc. -// All rights reserved. +// Copyright 2010 Google LLC // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -11,7 +10,7 @@ // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. -// * Neither the name of Google Inc. nor the names of its +// * Neither the name of Google LLC nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // @@ -38,6 +37,8 @@ #ifndef PROCESSOR_SIMPLE_SERIALIZER_H__ #define PROCESSOR_SIMPLE_SERIALIZER_H__ +#include <stddef.h> + #include "google_breakpad/common/breakpad_types.h" namespace google_breakpad { @@ -49,10 +50,10 @@ typedef uint64_t MemAddr; template<class Type> class SimpleSerializer { public: // Calculate and return the size of the 'item'. - static size_t SizeOf(const Type &item) { return sizeof(item); } + static size_t SizeOf(const Type& item) { return sizeof(item); } // Write 'item' to memory location 'dest', and return to the "end" address of // data written, i.e., the address after the final byte written. - static char *Write(const Type &item, char *dest) { + static char* Write(const Type& item, char* dest) { new (dest) Type(item); return dest + SizeOf(item); } |