int2

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
int2
Synonymsint2s
Summary

Used with the read from file, read from process, and read from socket commands to signify a chunk of binary data the size of a signed 2-byte integer.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
read from process "trap" for 4 int2
RelatedCommand: read from socket, read from process, write to driver, read from file
Glossary: keyword, binary file, command, chunk
Keyword: integer
Description

Use the int2 keyword to read data from a binary file.

If you specify int2 as the chunk type in a read from file, read from process, or read from socket command, the data is returned as a series of numbers separated by commas, one for each signed integer read.

Tagstext processing