tlv_test.go 208 B

123456789101112
  1. package yu_tencent
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. func TestTlv_From(t *testing.T) {
  7. j_buf := make([]byte, 0, 128)
  8. j_buf = Tlv.From(j_buf, 15, 1, 2, 3, 3, 5, 4)
  9. fmt.Println(j_buf, len(j_buf), cap(j_buf))
  10. }