diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/imbuf/intern/dds/Stream.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/imbuf/intern/dds/Stream.h')
-rw-r--r-- | source/blender/imbuf/intern/dds/Stream.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/source/blender/imbuf/intern/dds/Stream.h b/source/blender/imbuf/intern/dds/Stream.h index b9fba2ef8b2..35662e8f24e 100644 --- a/source/blender/imbuf/intern/dds/Stream.h +++ b/source/blender/imbuf/intern/dds/Stream.h @@ -18,26 +18,27 @@ * \ingroup imbdds */ - /* simple memory stream functions with buffer overflow check */ #ifndef __STREAM_H__ #define __STREAM_H__ struct Stream { - unsigned char *mem; // location in memory - unsigned int size; // size - unsigned int pos; // current position - bool failed; // error occured when seeking - Stream(unsigned char *m, unsigned int s) : mem(m), size(s), pos(0), failed(false) {} - unsigned int seek(unsigned int p); - void set_failed(const char *msg); + unsigned char *mem; // location in memory + unsigned int size; // size + unsigned int pos; // current position + bool failed; // error occured when seeking + Stream(unsigned char *m, unsigned int s) : mem(m), size(s), pos(0), failed(false) + { + } + unsigned int seek(unsigned int p); + void set_failed(const char *msg); }; -unsigned int mem_read(Stream & mem, unsigned long long & i); -unsigned int mem_read(Stream & mem, unsigned int & i); -unsigned int mem_read(Stream & mem, unsigned short & i); -unsigned int mem_read(Stream & mem, unsigned char & i); -unsigned int mem_read(Stream & mem, unsigned char *i, unsigned int cnt); +unsigned int mem_read(Stream &mem, unsigned long long &i); +unsigned int mem_read(Stream &mem, unsigned int &i); +unsigned int mem_read(Stream &mem, unsigned short &i); +unsigned int mem_read(Stream &mem, unsigned char &i); +unsigned int mem_read(Stream &mem, unsigned char *i, unsigned int cnt); -#endif /* __STREAM_H__ */ +#endif /* __STREAM_H__ */ |