var bufferFill=require("buffer-fill"),allocUnsafe=require("buffer-alloc-unsafe");module.exports=function(e,r,f){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(e,r,f);var u=allocUnsafe(e);return 0===e?u:void 0===r?bufferFill(u,0):("string"!=typeof f&&(f=void 0),bufferFill(u,r,f))};