toJSON() {
    return {
      type: "Buffer",
      data: Array.from(this),
    };
  }
/**
   * Returns a JSON representation of buf. JSON.stringify() implicitly calls
   * this function when stringifying a Buffer instance.
   */
Returns a JSON representation of buf. JSON.stringify() implicitly calls
this function when stringifying a Buffer instance.
Returns a JSON representation of buf . JSON . stringify () implicitly calls this function when stringifying a Buffer instance .
toJSON() {
    return {
      type: "Buffer",
      data: Array.from(this),
    };
  }
toJSON ( ) { return { type : "Buffer" , data : Array . from ( this ) , } ; }
Returns a JSON representation of buf.
Returns a JSON representation of buf .