grim/gousb2snes
Clone
Summary
Browse
Changes
Graph
Update the package path for the new repository host
draft
default
tip
2020-04-27, Gary Kramlich
2bff12a54574
Update the package path for the new repository host
package
sd2snes
// overwrite will overwrite the a with the entire run of b
func
overwrite
(
a
,
b
[]
byte
)
{
for
i
,
v
:=
range
b
{
a
[
i
]
=
v
}
}
// equal checks if byte slice a starts with b
func
equal
(
a
,
b
[]
byte
)
bool
{
if
len
(
a
)
<
len
(
b
)
{
return
false
}
for
i
,
v
:=
range
b
{
if
a
[
i
]
!=
v
{
return
false
}
}
return
true
}