Mcdonough Traffic Ticket Lawyers, Attorneys and Law Firms - Georgia. Nearby Cities: Decatur, Stone Mountain, Atlanta, Norcross, Lawrenceville
Buffer: A container for data of a specific primitive type. A buffer is a linear, finite sequence of elements of a specific primitive type. Aside from its content, the essential properties of a buffer are its capacity, limit, and position:he buffer is a storage container which stores part or all of the streamed data and feeds this to the output device. Of course, the point being that if the stream slows beyond the data rate required to show the data, then the output would pause.
So how do we deal with raw data, if there is no raw data variable type. Node.js uses Buffer class for this. If you plan to use a buffer variable type to append data to you need to initialize it with new Buffer(0). Also note that using += operator to append Buffer data containing raw binary data does not work. We need to use Buffer.concat() for this.