/* Returns a u32 from buffer. 
As per the offset given this function returns u32 from buffer. */
uint32_t FSGetDWord(uint8_t *buffer, int32_t iOffsetInUint8)
/* Returns a u32 from buffer. 
As per the offset given this function returns u32 from buffer. */
uint32_t FSGetDWord(uint8_t *buffer, int32_t iOffsetInUint8)
{
    uint32_t temp;
    temp =
        (((uint32_t) buffer[iOffsetInUint8]) |
         ((((uint32_t) buffer[iOffsetInUint8 + 1]) & 0xff) << 8) |
         ((((uint32_t) buffer[iOffsetInUint8 + 2]) & 0xff) << 16) |
         ((((uint32_t) buffer[iOffsetInUint8 + 3]) & 0xff) << 24));
    return temp;
}