| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
// Code generated by "internal/cmd/pdatagen/main.go". DO NOT EDIT. |
| 5 |
// To regenerate this file run "make genpdata". |
| 6 |
|
| 7 |
package internal |
| 8 |
|
| 9 |
type ByteSliceWrapper struct { |
| 10 |
orig *[]byte |
| 11 |
state *State |
| 12 |
} |
| 13 |
|
| 14 |
func GetByteSliceOrig(ms ByteSliceWrapper) *[]byte { |
| 15 |
return ms.orig |
| 16 |
} |
| 17 |
|
| 18 |
func GetByteSliceState(ms ByteSliceWrapper) *State { |
| 19 |
return ms.state |
| 20 |
} |
| 21 |
|
| 22 |
func NewByteSliceWrapper(orig *[]byte, state *State) ByteSliceWrapper { |
| 23 |
return ByteSliceWrapper{orig: orig, state: state} |
| 24 |
} |
| 25 |
|
| 26 |
func GenTestByteSliceWrapper() ByteSliceWrapper { |
| 27 |
orig := []byte{1, 2, 3} |
| 28 |
return NewByteSliceWrapper(&orig, NewState()) |
| 29 |
} |
| 30 |
|
| 31 |
func GenTestByteSlice() []byte { |
| 32 |
return []byte{1, 2, 3} |
| 33 |
} |