Network constants

From ENIGMA

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
<pre>
+
This article is an overview of network and buffer related constants.
-
network_socket_bluetooth
+
-
network_socket_tcp
+
-
network_socket_udp
+
-
buffer_bool
+
{| class="wikitable" width="100%" cellpadding=5 cellspacing=0 border=0 align=left style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
-
buffer_f16
+
|- cellpadding=5 cellspacing=0 border=0 align=left style="background-color:black; color:white;"
-
buffer_f32
+
| '''Constant'''
-
buffer_f64
+
| '''Description'''
-
buffer_fast
+
|-
-
buffer_fixed
+
|'''network_socket_bluetooth'''
-
buffer_generalerror
+
|
-
buffer_grow
+
|-
-
buffer_invalidtype
+
|'''network_socket_tcp'''
-
buffer_outofbounds
+
|
-
buffer_outofspace
+
|-
-
buffer_s16
+
|'''network_socket_udp'''
-
buffer_s32
+
|
-
buffer_s8
+
|}
-
buffer_seek_end
+
 
-
buffer_seek_relative
+
{| class="wikitable" width="100%" cellpadding=5 cellspacing=0 border=0 align=left style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
-
buffer_seek_start
+
|- cellpadding=5 cellspacing=0 border=0 align=left style="background-color:black; color:white;"
-
buffer_string
+
| '''Constant'''
-
buffer_u16
+
| '''Description'''
-
buffer_u32
+
|-
-
buffer_u8
+
|'''buffer_fast'''
-
buffer_vbuffer
+
|
-
</pre>
+
|-
 +
|'''buffer_fixed'''
 +
|
 +
|-
 +
|'''buffer_generalerror'''
 +
|
 +
|-
 +
|'''buffer_grow'''
 +
|
 +
|-
 +
|'''buffer_invalidtype'''
 +
|
 +
|-
 +
|'''buffer_outofbounds'''
 +
|
 +
|-
 +
|'''buffer_outofspace'''
 +
|
 +
|-
 +
|'''buffer_seek_end'''
 +
|
 +
|-
 +
|'''buffer_seek_relative'''
 +
|
 +
|-
 +
|'''buffer_seek_start'''
 +
|
 +
|-
 +
|'''buffer_vbuffer'''
 +
|
 +
|}
 +
 
 +
<center>
 +
{| class="wikitable" width="100%" cellpadding=5 cellspacing=0 border=0 align=left style="background-color:#FAD796; border: 2px; border-style: solid; border-color:gray;"
 +
|- cellpadding=5 cellspacing=0 border=0 align=left style="background-color:black; color:white;"
 +
| '''Constant'''
 +
| '''Bytes'''
 +
| '''Data Type'''
 +
| '''Description'''
 +
|-
 +
|'''buffer_u8'''
 +
|'''1 byte'''
 +
|8bit unsigned integer.
 +
|Positive value in the range of from 0 to 255
 +
|-
 +
|'''buffer_s8'''
 +
|'''1 byte'''
 +
|8bit signed integer.
 +
|Positive or negative value in the range of -128 to 127 (0 is classed as positive)
 +
|-
 +
|'''buffer_u16'''
 +
|'''2 bytes'''
 +
|16bit unsigned integer.
 +
|Positive value in the range of 0 to 65,535
 +
|-
 +
|'''buffer_s16'''
 +
|'''2 bytes'''
 +
|16bit signed integer.
 +
|Positive or negative value in the range of -32,768 to 32,767 (0 is classed as positive)
 +
|-
 +
|'''buffer_u32'''
 +
|'''4 bytes'''
 +
|32bit unsigned integer.
 +
|Positive value in the range of 0 to 4,294,967,295
 +
|-
 +
|'''buffer_s32'''
 +
|'''4 bytes'''
 +
|32bit signed integer.
 +
|Positive or negative value in the range of -2,147,483,648 to 2,147,483,647 (0 is classed as positive).
 +
|-
 +
|'''buffer_f16'''
 +
|'''2 bytes'''
 +
|16bit floating point number.
 +
|Positive or negative value within the range of a 16 bit signed integer. '''''(Not currently supported!)'''''
 +
|-
 +
|'''buffer_f32'''
 +
|'''4 bytes'''
 +
|32bit floating point number.
 +
|Positive or negative value in the range of within the range of a 32 bit signed integer.
 +
|-
 +
|'''buffer_f64'''
 +
|'''8 bytes'''
 +
|64bit floating point number.
 +
|Positive or negative value in the range of within the range of -(2<sup>63</sup>) to 2<sup>63</sup> - 1.
 +
|-
 +
|'''buffer_bool'''
 +
|'''1 byte'''
 +
|boolean value.
 +
|Can only be either 1 or 0 ('''''true''''' or '''''false''''')
 +
|-
 +
|'''buffer_string'''
 +
|'''N/A'''
 +
|[http://en.wikipedia.org/wiki/UTF-8 UTF-8] null terminated (0x00) string.
 +
|Basically a GameMaker string is dumped in the buffer, and a 0 put at the end.
 +
|}
 +
</center>

Revision as of 09:53, 19 April 2013

This article is an overview of network and buffer related constants.

Constant Description
network_socket_bluetooth
network_socket_tcp
network_socket_udp
Constant Description
buffer_fast
buffer_fixed
buffer_generalerror
buffer_grow
buffer_invalidtype
buffer_outofbounds
buffer_outofspace
buffer_seek_end
buffer_seek_relative
buffer_seek_start
buffer_vbuffer
Constant Bytes Data Type Description
buffer_u8 1 byte 8bit unsigned integer. Positive value in the range of from 0 to 255
buffer_s8 1 byte 8bit signed integer. Positive or negative value in the range of -128 to 127 (0 is classed as positive)
buffer_u16 2 bytes 16bit unsigned integer. Positive value in the range of 0 to 65,535
buffer_s16 2 bytes 16bit signed integer. Positive or negative value in the range of -32,768 to 32,767 (0 is classed as positive)
buffer_u32 4 bytes 32bit unsigned integer. Positive value in the range of 0 to 4,294,967,295
buffer_s32 4 bytes 32bit signed integer. Positive or negative value in the range of -2,147,483,648 to 2,147,483,647 (0 is classed as positive).
buffer_f16 2 bytes 16bit floating point number. Positive or negative value within the range of a 16 bit signed integer. (Not currently supported!)
buffer_f32 4 bytes 32bit floating point number. Positive or negative value in the range of within the range of a 32 bit signed integer.
buffer_f64 8 bytes 64bit floating point number. Positive or negative value in the range of within the range of -(263) to 263 - 1.
buffer_bool 1 byte boolean value. Can only be either 1 or 0 (true or false)
buffer_string N/A UTF-8 null terminated (0x00) string. Basically a GameMaker string is dumped in the buffer, and a 0 put at the end.
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox