Add a spec for an extended API for binary data handling

Nit: more idiomatic to do "return _bytesRead_". Unsure if there's an observable difference.