lib/index.js
function writePCBuffer(client, buffer) {
    var length = pcbuffer.createBuffer();


    length.writeVarInt(buffer.buffer().length);

    client.write(Buffer.concat([length.buffer(), buffer.buffer()]));
}
function writePCBuffer(client, buffer) {
    var length = pcbuffer.createBuffer();


    length.writeVarInt(buffer.buffer().length);

    client.write(Buffer.concat([length.buffer(), buffer.buffer()]));
}
function writePCBuffer ( client , buffer ) { var length = pcbuffer . createBuffer ( ) ; length . writeVarInt ( buffer . buffer ( ) . length ) ; client . write ( Buffer . concat ( [ length . buffer ( ) , buffer . buffer ( ) ] ) ) ; }
Wraps our Buffer into another to fit the Minecraft protocol.
Wraps our Buffer into another to fit the Minecraft protocol .