1/** 2 * @copyright Copyright (c) 2021 Sagetech, Inc. All rights reserved. 3 * 4 * @file toInt32.c 5 * @author Jacob.Garrison 6 * 7 * @date Mar 2, 2021 8 * 9 */ 10 11#include "sgUtil.h" 12 13/* 14 * Documented in the header file. 15 */ 16int32_t toInt32(const uint8_t bytes[]) 17{ 18 int32_t int32 = ((int32_t)bytes[0] << 24) | ((int32_t)bytes[1] << 16) | ((int32_t)bytes[2] << 8); 19 int32 = int32 >> 8; 20 21 return int32; 22} 23 24