cpx build compiles and loads and works in repl; test suite not run yet esp8266 not tested yet
buffer from start, end and length. The old code miscomputed length leading to writing and reading from memory past the end of the buffer. Consolidating the code should make it easier to get right everywhere.