[flashproxy/master] Simpler reclaiming of RTMFPSocket buffer space.

24 Jul
2011
24 Jul
'11
3:26 a.m.
commit ee02ad3fb904c10aaabdde44fd4dffbf3cde442e Author: David Fifield <david@bamsoftware.com> Date: Sun Jul 24 03:21:48 2011 +0000 Simpler reclaiming of RTMFPSocket buffer space. --- RTMFPSocket.as | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/RTMFPSocket.as b/RTMFPSocket.as index 4dd54c5..421f9cc 100644 --- a/RTMFPSocket.as +++ b/RTMFPSocket.as @@ -192,8 +192,7 @@ package buffer.readBytes(output, offset, length); if (buffer.bytesAvailable == 0) { /* Reclaim memory space. */ - buffer.position = 0; - buffer.length = 0; + buffer.clear(); } }
5062
Age (days ago)
5062
Last active (days ago)
0 comments
1 participants
participants (1)
-
dcf@torproject.org