Skip to content

Commit c4af35c

Browse files
tvolkertcommit-bot@chromium.org
authored andcommitted
Update Datagram.data to be Uint8List
Bug: #36900 Change-Id: Ia0a4fcb6f21bcb16cb0418bfe9d1b880193fefed Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/104540 Commit-Queue: Todd Volkert <tvolkert@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
1 parent dcf9fec commit c4af35c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

runtime/bin/socket_patch.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1985,6 +1985,6 @@ class _RawDatagramSocket extends Stream<RawSocketEvent>
19851985

19861986
@pragma("vm:entry-point", "call")
19871987
Datagram _makeDatagram(
1988-
List<int> data, String address, Uint8List in_addr, int port) {
1988+
Uint8List data, String address, Uint8List in_addr, int port) {
19891989
return new Datagram(data, new _InternetAddress(address, null, in_addr), port);
19901990
}

sdk/lib/io/socket.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,12 +825,12 @@ abstract class Socket implements Stream<List<int>>, IOSink {
825825
}
826826

827827
/**
828-
* Datagram package. Data send to and received from datagram sockets
828+
* Datagram package. Data sent to and received from datagram sockets
829829
* contains the internet address and port of the destination or source
830830
* togeter with the data.
831831
*/
832832
class Datagram {
833-
List<int> data;
833+
Uint8List data;
834834
InternetAddress address;
835835
int port;
836836

0 commit comments

Comments
 (0)