This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CSPlayer.BinaryReader | |
if TextDecoder? | |
# The TextDecoder API properly decodes UTF-8 | |
textDecoder = new TextDecoder() | |
@DecodeString = (array) -> textDecoder.decode array | |
else | |
# If the TextDecoder API isn't available, fall back to ASCII decoding | |
@DecodeString = (array) -> String.fromCharCode.apply null, array | |
constructor: (buffer) -> |
NewerOlder