Atomics.store() function in JavaScript

Samual Sam
Published on 24-Oct-2018 11:13:25
The Atomic object of JavaScript is an object and which provides atomic operations such as add, sub, and, or, xor, load, store etc. as static methods, these methods are used with SharedArrayBuffer objects.The store() function of the atomic object accepts a number(value) and a position in the array and, stores ... Read More

Atomics.load() function in JavaScript

karthikeya Boyini
Published on 24-Oct-2018 11:11:15
The Atomic object of JavaScript is an object and which provides atomic operations such as add, sub, and, or, xor, load, store etc. as static methods, these methods are used with SharedArrayBuffer objects.The load() function of the Atomic object returns the value at a given position of an array.SyntaxIts syntax ... Read More

Atomics.isLockFree() function in JavaScript

Samual Sam
Published on 24-Oct-2018 11:09:22
The Atomic object of JavaScript is an object and which provides atomic operations such as add, sub, and, or, xor, load, store etc. as static methods, these methods are used with SharedArrayBuffer objects.This method is used to determine whether to use locks or atomic operations.SyntaxIts syntax is as followsAtomics.isLockFree(size)Example Live Demo<html> ... Read More

Atomics.or() function in JavaScript

karthikeya Boyini
Published on 24-Oct-2018 11:05:34
The Atomic object of JavaScript is an object and which provides atomic operations such as add, sub, and, or, xor, load, store etc. as static methods, these methods are used with SharedArrayBuffer objects.The or() function of the atomic object accepts a value representing the position of an array, performs bitwise ... Read More

Atomics.and() function in JavaScript

Samual Sam
Published on 24-Oct-2018 11:02:26
The Atomic object of JavaScript is an object and which provides atomic operations such as add, sub, and, or, xor, load, store etc. as static methods, these methods are used with SharedArrayBuffer objects.The and() function of the Atomic object accepts a value representing the position of an array, performs bitwise ... Read More

Atomics.add() function in JavaScript

karthikeya Boyini
Published on 24-Oct-2018 11:00:37
The Atomic object of JavaScript is an object and which provides atomic operations such as add, sub, and, or, xor, load, store etc. as static methods, these methods are used with SharedArrayBuffer objects.The add() function of this object accepts a number and the position, adds the given number to the ... Read More

ArrayBuffer.slice() function in JavaScript

Samual Sam
Published on 24-Oct-2018 10:58:47
ArrayBuffer object in JavaScript represents a fixed-length binary data buffer.The slice() method of the this object returns a portion or, chunk from the array buffer (as a separate object). It accepts two integer arguments representing the start (inclusive) and end (exclusive) of the portion of the array to be returned.SyntaxIts ... Read More

ArrayBuffer.isView() function in JavaScript

karthikeya Boyini
Published on 24-Oct-2018 10:55:53
ArrayBuffer object in JavaScript represents a fixed-length binary data buffer. The isView() function of this object accepts an argument and verifies whether it is view of ArrayBuffer (DataView, typed array). If so, it returns true else, it returns false.SyntaxIts syntax is as followsarrayBuffer.isView(arg)ExampleTry the following example. Live Demo<html> <head>    <title>JavaScript ... Read More

ArrayBuffer.byteLength Property in JavaScript

Samual Sam
Published on 24-Oct-2018 10:50:09
ArrayBuffer object in JavaScript represents a fixed-length binary data buffer.The byteLength property of the ArrayBuffer returns an unsigned, 32-bit integer that specifies the size/length of the ArrayBuffer.SyntaxIts syntax is as followsarray.byteLengthExampleTry the following example. Live Demo<html> <head> <title>JavaScript Example</title> </head> <body>    <script type="text/javascript">       var arrayBuffer = new ... Read More

What are the new changes introduced in C++11?

Arjun Thakur
Published on 23-Oct-2018 17:43:28
C++11 is a version of standard C++ language. It was approved by International Organization for Standardization (ISO) on 12 August 2011 then C++14 and C++17. C++11 makes several additions to the core language. There are some of the new changes introduced in C++11 − nullptr − In the previous ... Read More
Advertisements