mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-08 08:53:45 +00:00
replace NodeJS buffer with Uint8Array
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ export class Decoder {
|
||||
}
|
||||
|
||||
// TODO(jwetzell): add invalid frame id decoding. Scenario where a frame id is reused before one is complete
|
||||
decode(packetBuf: Buffer): DataPacketChunk | InfoPacketChunk | undefined {
|
||||
decode(packetBuf: Uint8Array): DataPacketChunk | InfoPacketChunk | undefined {
|
||||
const packet = Decoders.Packet(packetBuf);
|
||||
if (packet === undefined) {
|
||||
return packet;
|
||||
|
||||
Reference in New Issue
Block a user