X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=portable_io.h;h=81dfcf57fc788ba9888d31a520e2f7b71e43774f;hb=662fbe85190d071f2d4b839d0ab8440920e8d47d;hp=00704b29309a2edf1125221530940789d51c0053;hpb=c52dfd608f15c8779df38fd46602e562b287171a;p=paraslash.git diff --git a/portable_io.h b/portable_io.h index 00704b29..81dfcf57 100644 --- a/portable_io.h +++ b/portable_io.h @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2007 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2007 Andre Noll , see file COPYING. */ /** \file portable_io.h Inline functions for binary IO. */ @@ -62,6 +58,11 @@ static inline uint32_t read_u32_be(const void *buf) return read_portable_be(32, buf); } +static inline uint32_t read_u24_be(const void *buf) +{ + return read_portable_be(24, buf); +} + static inline uint16_t read_u16_be(const void *buf) { return read_portable_be(16, buf);