MCPcopy Create free account
hub / github.com/drosoCode/atvremote / text2byte

Function text2byte

pkg/v1/command/command.go:108–114  ·  view source on GitHub ↗

converts a string to a byte array

(text string)

Source from the content-addressed store, hash-verified

106
107// converts a string to a byte array
108func text2byte(text string) []byte {
109 arr := []byte{}
110 for _, c := range text {
111 arr = append(arr, byte(int(c)))
112 }
113 return arr
114}
115
116// send an intent to the android tv device
117// can be used to start an app with a specific activity

Callers 1

SendIntentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected