Implemented ByteStream to be able to read and write data to frames