The code above defines a class ExampleRecord which has 2 properties (a
and b).
2. Creates mapping between the structure and a binary data.
ExampleRecord can be instantiated with an ArrayBuffer object or a view of
an ArrayBuffer object. E.g., Node.js Buffer objects are the view of
ArrayBuffer objects.
Those record instances are just wrappers. The record1.a getter will read
the 1st byte of buffer directly. The record2.a getter will read the 2nd
byte of buffer directly.
Also, The record1.a setter will write the 1st byte of buffer directly.
This means that record2.a which is sharing the buffer will be changed.
This would be useful to read and write binary data.
The size of records.
Record classes have 2 properties to get the record size.
Those are static getter properties (since records are fixed size).