mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-09-08 15:59:22 +00:00
organization
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
const chunk = require('../chunk');
|
||||
|
||||
module.exports = (packetHeaderChunk, systemNameChunk, trackerListChunk) =>
|
||||
chunk(0x6756, Buffer.concat([packetHeaderChunk, systemNameChunk, trackerListChunk]), true);
|
||||
@@ -0,0 +1,3 @@
|
||||
const chunk = require('../chunk');
|
||||
|
||||
module.exports = (systemName) => chunk(0x0001, Buffer.from(systemName), false);
|
||||
@@ -0,0 +1,3 @@
|
||||
const chunk = require('../chunk');
|
||||
|
||||
module.exports = (trackerId, trackerNameChunk) => chunk(trackerId, trackerNameChunk, true);
|
||||
@@ -0,0 +1,3 @@
|
||||
const chunk = require('../chunk');
|
||||
|
||||
module.exports = (trackerChunks) => chunk(0x0002, Buffer.concat(trackerChunks), true);
|
||||
@@ -0,0 +1,3 @@
|
||||
const chunk = require('../chunk');
|
||||
|
||||
module.exports = (trackerName) => chunk(0x0000, Buffer.from(trackerName), false);
|
||||
Reference in New Issue
Block a user