Structured approach to the nodejs' Buffer class