2 * alignment.h, Copyright, 1998, Richard Sharpe, All Rights Reserved
4 * $Id: alignment.h,v 1.3 1999/09/23 05:26:18 guy Exp $
6 * Please see the file COPYING in the top level for details of copying
7 * this software. Use of this software is approved only under certain
10 * This file implements the alignment macros for the Threaded SMB Server
12 * For the moment we assume Intel style architecture, but can support
15 * Modification History
17 * 16-Oct-1998, RJS, Initial Coding
24 #define GBYTE(buf, pos) (unsigned char)((char)buf[pos])
25 #define GSHORT(buf, pos) pletohs(&buf[pos])
26 #define GSSHORT(buf, pos) (signed)pletohs(&buf[pos])
27 #define GWORD(buf, pos) pletohl(&buf[pos])