/// <summary> /// Does copy between buffers. The source and target regions can be overlapped. targetStart and sourceStart default to 0. sourceEnd defaults to buffer.length. /// </summary> /// <param name="targetBuffer">Buffer to copy into</param> /// <param name="targetStart"> Number, Optional, Default: 0</param> /// <summary> /// Does copy between buffers. The source and target regions can be overlapped. targetStart and sourceStart default to 0. sourceEnd defaults to buffer.length. /// </summary> /// <param name="targetBuffer">Buffer to copy into</param> /// <param name="targetStart"> Number, Optional, Default: 0</param> /// <param name="sourceStart">Number, Optional, Default: 0</param> /// /// <example> /// <code> /// //Example: build two Buffers, then copy buf1 from byte 16 through byte 19 into buf2, starting at the 8th byte in buf2. /// buf1 = new Buffer(26); /// buf2 = new Buffer(26); /// /// for (var i = 0 ; i < 26 ; i++) { /// buf1[i] = i + 97; // 97 is ASCII a /// buf2[i] = 33; // ASCII ! /// } /// /// buf1.copy(buf2, 8, 16, 20); /// console.log(buf2.toString('ascii', 0, 25)); /// /// // !!!!!!!!qrst!!!!!!!!!!!!! /// </code> /// </example> public void copy(Buffer targetBuffer, JsNumber targetStart) { }
/// <summary> /// Does copy between buffers. The source and target regions can be overlapped. targetStart and sourceStart default to 0. sourceEnd defaults to buffer.length. /// </summary> /// <param name="targetBuffer">Buffer to copy into</param> /// <summary> /// Does copy between buffers. The source and target regions can be overlapped. targetStart and sourceStart default to 0. sourceEnd defaults to buffer.length. /// </summary> /// <param name="targetBuffer">Buffer to copy into</param> /// <param name="targetStart"> Number, Optional, Default: 0</param> /// <param name="sourceStart">Number, Optional, Default: 0</param> /// /// <example> /// <code> /// //Example: build two Buffers, then copy buf1 from byte 16 through byte 19 into buf2, starting at the 8th byte in buf2. /// buf1 = new Buffer(26); /// buf2 = new Buffer(26); /// /// for (var i = 0 ; i < 26 ; i++) { /// buf1[i] = i + 97; // 97 is ASCII a /// buf2[i] = 33; // ASCII ! /// } /// /// buf1.copy(buf2, 8, 16, 20); /// console.log(buf2.toString('ascii', 0, 25)); /// /// // !!!!!!!!qrst!!!!!!!!!!!!! /// </code> /// </example> public void copy(Buffer targetBuffer) { }
/// <summary> /// Does copy between buffers. The source and target regions can be overlapped. targetStart and sourceStart default to 0. sourceEnd defaults to buffer.length. /// </summary> /// <param name="targetBuffer">Buffer to copy into</param> /// <param name="targetStart"> Number, Optional, Default: 0</param> /// <param name="sourceStart">Number, Optional, Default: 0</param> /// <param name="sourceEnd">Optional, Default: buffer.length</param> /// <example> /// <code> /// //Example: build two Buffers, then copy buf1 from byte 16 through byte 19 into buf2, starting at the 8th byte in buf2. /// buf1 = new Buffer(26); /// buf2 = new Buffer(26); /// /// for (var i = 0 ; i < 26 ; i++) { /// buf1[i] = i + 97; // 97 is ASCII a /// buf2[i] = 33; // ASCII ! /// } /// /// buf1.copy(buf2, 8, 16, 20); /// console.log(buf2.toString('ascii', 0, 25)); /// /// // !!!!!!!!qrst!!!!!!!!!!!!! /// </code> /// </example> public void copy(Buffer targetBuffer, JsNumber targetStart, JsNumber sourceStart, JsNumber sourceEnd) { }