Index: runtime/bin/socket_patch.dart |
diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
index 7d0f5daf2c292d94c485d9b2b440a0b0a3a232b3..e69dfedbb752b5e8f33a6e3a6b2b26dbce05f838 100644 |
--- a/runtime/bin/socket_patch.dart |
+++ b/runtime/bin/socket_patch.dart |
@@ -299,7 +299,7 @@ class _NativeSocket extends NativeFieldWrapperClass1 { |
if (isClosed) return 0; |
if (bytes == 0) return 0; |
_BufferAndStart bufferAndStart = |
- _ensureFastAndSerializableBuffer(buffer, offset, offset + bytes); |
+ _ensureFastAndSerializableByteData(buffer, offset, offset + bytes); |
var result = |
nativeWrite(bufferAndStart.buffer, bufferAndStart.start, bytes); |
if (result is OSError) { |