The method extends Node.js's Buffer class to support 64-bit signed integer, big endian. See buf.writeInt32BE().