cpack.h (146774) | cpack.h (235530) |
---|---|
1/*- 2 * Copyright (c) 2003, 2004 David Young. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 38 39int cpack_init(struct cpack_state *, u_int8_t *, size_t); 40 41int cpack_uint8(struct cpack_state *, u_int8_t *); 42int cpack_uint16(struct cpack_state *, u_int16_t *); 43int cpack_uint32(struct cpack_state *, u_int32_t *); 44int cpack_uint64(struct cpack_state *, u_int64_t *); 45 | 1/*- 2 * Copyright (c) 2003, 2004 David Young. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 29 unchanged lines hidden (view full) --- 38 39int cpack_init(struct cpack_state *, u_int8_t *, size_t); 40 41int cpack_uint8(struct cpack_state *, u_int8_t *); 42int cpack_uint16(struct cpack_state *, u_int16_t *); 43int cpack_uint32(struct cpack_state *, u_int32_t *); 44int cpack_uint64(struct cpack_state *, u_int64_t *); 45 |
46u_int8_t *cpack_next_boundary(u_int8_t *buf, u_int8_t *p, size_t alignment); 47u_int8_t *cpack_align_and_reserve(struct cpack_state *cs, size_t wordsize); 48 |
|
46#define cpack_int8(__s, __p) cpack_uint8((__s), (u_int8_t*)(__p)) 47#define cpack_int16(__s, __p) cpack_uint16((__s), (u_int16_t*)(__p)) 48#define cpack_int32(__s, __p) cpack_uint32((__s), (u_int32_t*)(__p)) 49#define cpack_int64(__s, __p) cpack_uint64((__s), (u_int64_t*)(__p)) 50 51#endif /* _CPACK_H */ | 49#define cpack_int8(__s, __p) cpack_uint8((__s), (u_int8_t*)(__p)) 50#define cpack_int16(__s, __p) cpack_uint16((__s), (u_int16_t*)(__p)) 51#define cpack_int32(__s, __p) cpack_uint32((__s), (u_int32_t*)(__p)) 52#define cpack_int64(__s, __p) cpack_uint64((__s), (u_int64_t*)(__p)) 53 54#endif /* _CPACK_H */ |