buffer

Members

newBufferWarned inner

The Buffer() construtor is "soft deprecated" ... that is, it is deprecated in the documentation and should not be used moving forward. Rather, developers should use one of the three new factory APIs: Buffer.from(), Buffer.allocUnsafe() or Buffer.alloc() based on their specific needs. There is no hard deprecation because of the extent to which the Buffer constructor is used in the ecosystem currently -- a hard deprecation would introduce too much breakage at this time. It's not likely that the Buffer constructors would ever actually be removed.