From 3bdf6cdc1320dfd7ac0f1704976a633ef3c911d8 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Tue, 20 Jul 2021 11:54:25 -0500 Subject: Add get_buffered_amount() to WebRTCDataChannel --- src/net/WebRTCDataChannelNative.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/WebRTCDataChannelNative.cpp') diff --git a/src/net/WebRTCDataChannelNative.cpp b/src/net/WebRTCDataChannelNative.cpp index 86d0afa..4e6b114 100644 --- a/src/net/WebRTCDataChannelNative.cpp +++ b/src/net/WebRTCDataChannelNative.cpp @@ -113,6 +113,10 @@ bool is_negotiated_wdc(const void *user) { return ((WebRTCDataChannelNative *)user)->is_negotiated(); } +int get_buffered_amount_wdc(const void *user) { + return ((WebRTCDataChannelNative *)user)->get_buffered_amount(); +} + godot_error poll_wdc(void *user) { return ((WebRTCDataChannelNative *)user)->poll(); } -- cgit v1.2.3