mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
jsutil: Remove ArrayBufferToSlice
This commit is contained in:
parent
b326b76d60
commit
7a86238c9a
@ -21,10 +21,6 @@ import (
|
||||
. "github.com/hajimehoshi/ebiten/v2/internal/jsutil"
|
||||
)
|
||||
|
||||
func TestArrayBufferToSlice(t *testing.T) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
func TestCopySliceToJS(t *testing.T) {
|
||||
tests := []struct {
|
||||
in interface{}
|
||||
|
@ -28,10 +28,6 @@ func Uint8ArrayToSlice(value js.Value) []byte {
|
||||
return s
|
||||
}
|
||||
|
||||
func ArrayBufferToSlice(value js.Value) []byte {
|
||||
return Uint8ArrayToSlice(js.Global().Get("Uint8Array").New(value))
|
||||
}
|
||||
|
||||
func sliceToByteSlice(s interface{}) (bs []byte) {
|
||||
switch s := s.(type) {
|
||||
case []int8:
|
||||
|
Loading…
Reference in New Issue
Block a user