Touch Develop retirement postponed until June 22, 2019. Sign-in and access to cloud assets to be removed on May 23, 2018.Learn More..


Bits

Arithmetic and bitwise operations on 32 bit integers
function bits → add int32(x : Number, y : Number) returns Number
Add two signed 32 bit numbers
function bits → add uint32(x : Number, y : Number) returns Number
Add two unsigned 32 bit numbers
function bits → and int32(x : Number, y : Number) returns Number
Perform bitwise and (& in C) on signed integers
function bits → and uint32(x : Number, y : Number) returns Number
Perform bitwise and (& in C)
function bits → create buffer(size : Number) returns Buffer
Creates an empty binary buffer of size bytes
function bits → multiply int32(x : Number, y : Number) returns Number
Multiply two signed 32 bit numbers
function bits → multiply uint32(x : Number, y : Number) returns Number
Multiply two unsigned 32 bit numbers
function bits → not uint32(x : Number) returns Number
Perform bitwise negation (~ in C)
function bits → or int32(x : Number, y : Number) returns Number
Perform bitwise or (| in C) on signed integers
function bits → or uint32(x : Number, y : Number) returns Number
Perform bitwise or (| in C)
function bits → rotate left uint32(x : Number, bits : Number) returns Number
Rotate x by bits left (rotl)
function bits → rotate right uint32(x : Number, bits : Number) returns Number
Rotate x by bits right (rotr)
function bits → shift left uint32(x : Number, bits : Number) returns Number
Shift x by bits left (<< in C)
function bits → shift right uint32(x : Number, bits : Number) returns Number
Shift x by bits right (>> in C, >>> in JavaScript)
function bits → string to buffer(s : String, encoding : String) returns Buffer
Decodes string into a binary buffer
function bits → subtract int32(x : Number, y : Number) returns Number
Subtract two signed 32 bit numbers
function bits → subtract uint32(x : Number, y : Number) returns Number
Subtract two unsigned 32 bit numbers
function bits → xor uint32(x : Number, y : Number) returns Number
Perform bitwise exclusive or (^ in C)

edit this topic vgrreoxred