/// <summary> /// Reads a chunk of bytes and interprets it in Little-Endian mode. /// </summary> /// <param name="type">Enough bytes read </param> /// <returns>The read value as a <see cref="Constant"/>.</returns> public bool TryReadLe(PrimitiveType dataType, out Constant c) { bool ret; if (mem is null) { ret = ByteMemoryArea.TryReadLe(bytes, Offset, dataType, out c); } else { ret = mem.TryReadLe(off, dataType, out c); } if (ret) { off += (uint)dataType.Size; } return(ret); }