mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 03:53:42 +00:00
2ab7ee6a8a
Signed-off-by: deadprogram <ron@hybridgroup.com>
18 lines
247 B
Go
18 lines
247 B
Go
package descriptor
|
|
|
|
const (
|
|
classSpecificTypeLen = 5
|
|
)
|
|
|
|
type ClassSpecificType struct {
|
|
data []byte
|
|
}
|
|
|
|
func (d ClassSpecificType) Bytes() []byte {
|
|
return d.data[:d.data[0]]
|
|
}
|
|
|
|
func (d ClassSpecificType) Length(v uint8) {
|
|
d.data[0] = byte(v)
|
|
}
|