Small node.js helper for reading from Buffer with specified (ahead of time) endian