Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


What are bytes,pointers,offsets?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
drmn2
How do I cheat?
Reputation: 0

Joined: 01 Mar 2012
Posts: 3

PostPosted: Thu Mar 01, 2012 3:50 pm    Post subject: What are bytes,pointers,offsets? Reply with quote

hey everyone i just downloaded cheat engine and started out the tutorial and everything is fine but there are some terms im not famillar with and i'd be happy if someone explained to me
alright first of all what are:
1.bytes(whats the difference between 2,4,8,float,double)
2.pointers
3.offsets
4.array of bytes(how are they different from normal bytes)
thank you!
Back to top
View user's profile Send private message
abystus
Expert Cheater
Reputation: 1

Joined: 09 Dec 2010
Posts: 140

PostPosted: Fri Mar 02, 2012 12:10 am    Post subject: Re: What are bytes,pointers,offsets? Reply with quote

drmn2 wrote:
whats the difference between 2,4,8,float,double


Depending on the "size" (2 bytes, 4 bytes, 8 bytes, float, and double) of the value your looking for, it will fit into one of the below categories:

Code:
char   Character or small integer.   1byte   signed: -128 to 127 unsigned: 0 to 255
short int (short)   Short Integer.   2bytes   signed: -32768 to 32767 unsigned: 0 to 65535
int   Integer.   4bytes   signed: -2147483648 to 2147483647 unsigned: 0 to 4294967295
long int (long)   Long integer.   4bytes   signed: -2147483648 to 2147483647 unsigned: 0 to 4294967295
bool   Boolean value. It can take one of two values: true or false.   1byte true or false
float   Floating point number.   4bytes   +/- 3.4e +/- 38 (~7 digits)
double   Double precision floating point number.   8bytes   +/- 1.7e +/- 308 (~15 digits)
long double   Long double precision floating point number.   8bytes   +/- 1.7e +/- 308 (~15 digits)


Each byte can hold the values 0-255, and when that limit is exceeded the remainder is housed in another address next to it. The larger the number, the more bytes it will need to be stored.

drmn2 wrote:
pointers


Pointers "point" to another location in memory (usually a base address), but can also point to other pointers. If an address is not specifically defined within the instruction, then it is being "pointed" to via a [register + offset].

drmn2 wrote:
offsets


An offset is used to indicate the distance (displacement) from the beginning of the object up until a given element or point. Offsets will be within the [ ] section of ASM, and will look similar to [EAX + 5], where 5 would be the offset, and the address index in EAX would be increased by 5 (because it says + 5 in the instruction).

drmn2 wrote:
array of bytes(how are they different from normal bytes)


Think of an array of bytes as a collection of normal bytes that are indexed. Say you have an array that holds 50 entries (as type byte()), then each entry 0-50 would be a single byte. Byte arrays are used to hold as many bytes as you specify the maximum index to be, and is generally easier than the programmer having to manually declare each byte as a separate memory location.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites