ByteData buffer fix

there should be ByteBuffer as argument, not Uint8List...
(thanks for example though!)