Writing into buffers in PHP -
i come node.js , things like:
buf.writeuint16le(data, offset);
now need similar in php. have:
protected $tmpl = '06007007010001004b4'; $bytes = unpack('c*', $this->tmpl);
but pack
function doesn't seem have offset argument. alternatives?
Comments
Post a Comment