OLD | NEW |
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 /* Helper functions/wrappers for memory allocations, manipulation and | 6 /* Helper functions/wrappers for memory allocations, manipulation and |
7 * comparison. | 7 * comparison. |
8 */ | 8 */ |
9 | 9 |
10 #ifndef VBOOT_FIRMWARE_LIB_UTILITY_H_ | 10 #ifndef VBOOT_FIRMWARE_LIB_UTILITY_H_ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 * a constant value. | 53 * a constant value. |
54 * On success, return a meaningless but non-NULL pointer and updates [state]. | 54 * On success, return a meaningless but non-NULL pointer and updates [state]. |
55 * On failure, return NULL, set remaining_len in state to -1. | 55 * On failure, return NULL, set remaining_len in state to -1. |
56 * | 56 * |
57 * After the first failure (buffer overrun), successive calls will always fail. | 57 * After the first failure (buffer overrun), successive calls will always fail. |
58 */ | 58 */ |
59 const void* StatefulMemset_r(MemcpyState* state, const uint8_t val, | 59 const void* StatefulMemset_r(MemcpyState* state, const uint8_t val, |
60 uint64_t len); | 60 uint64_t len); |
61 | 61 |
62 #endif /* VBOOT_FIRMWARE_LIB_UTILITY_H_ */ | 62 #endif /* VBOOT_FIRMWARE_LIB_UTILITY_H_ */ |
OLD | NEW |