mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +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"
|
. "github.com/hajimehoshi/ebiten/v2/internal/jsutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestArrayBufferToSlice(t *testing.T) {
|
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestCopySliceToJS(t *testing.T) {
|
func TestCopySliceToJS(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
in interface{}
|
in interface{}
|
||||||
|
@ -28,10 +28,6 @@ func Uint8ArrayToSlice(value js.Value) []byte {
|
|||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
func ArrayBufferToSlice(value js.Value) []byte {
|
|
||||||
return Uint8ArrayToSlice(js.Global().Get("Uint8Array").New(value))
|
|
||||||
}
|
|
||||||
|
|
||||||
func sliceToByteSlice(s interface{}) (bs []byte) {
|
func sliceToByteSlice(s interface{}) (bs []byte) {
|
||||||
switch s := s.(type) {
|
switch s := s.(type) {
|
||||||
case []int8:
|
case []int8:
|
||||||
|
Loading…
Reference in New Issue
Block a user