it('should write a C-Octet String (null-terminated string) to the buffer', function () { const b2 = new Buffer(9); types.cstring.write(expected, b2, 0); assert.deepEqual(b, b2); });