ceremonyclient/bedlam/testsuite/lang/copy_make.qcl
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

18 lines
286 B
Go

// -*- go -*-
package main
// @Hex
// @LSB
// @Test 0x11223344 0xaabb = 0x11223344aa 0x11223344aa 5
func main(g, e []byte) ([]byte, []byte, int) {
buf := make([]byte, 5)
n := copy(buf, g)
m := copy(buf[n:], e)
buf2 := make([]byte, 5)
copy(buf2, buf)
return buf, buf2, n + m
}