We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1eba374 commit 0b89228Copy full SHA for 0b89228
lib/src/core/content.dart
@@ -24,10 +24,8 @@ class Content {
24
25
/// Converts the [body] of the content to a [ByteBuffer] asynchronously.
26
Future<ByteBuffer> get byteBuffer async {
27
- final buffer = Uint8Buffer();
28
- await for (final bytes in body) {
29
- buffer.addAll(bytes);
30
- }
+ final buffer = Uint8Buffer()..addAll(await toByteList());
+
31
return buffer.buffer;
32
}
33
0 commit comments