Go to the first, previous, next, last section, table of contents.


chars4Int

Function: chars4Int { char0 char1 char2 char3 -> int }
file: job.t
package: muf
status: alpha

The chars4Int function converts a quad of characters to an integer char0<<24 + char1<<16 + char2<<8 +char3. This is intended primarily for converting integers recieved through a TCP or UDP network connection into usable form.

Note that since Muq integers are only 31 bits, it is possible to lose one bit of precision at the high end by doing this.


Go to the first, previous, next, last section, table of contents.