(dAtA []byte)
| 825 | } |
| 826 | |
| 827 | func (m *InternalType) MarshalTo(dAtA []byte) (int, error) { |
| 828 | var i int |
| 829 | _ = i |
| 830 | var l int |
| 831 | _ = l |
| 832 | dAtA[i] = 0x8 |
| 833 | i++ |
| 834 | i = encodeVarintTypes(dAtA, i, uint64(m.Family)) |
| 835 | dAtA[i] = 0x10 |
| 836 | i++ |
| 837 | i = encodeVarintTypes(dAtA, i, uint64(m.Width)) |
| 838 | dAtA[i] = 0x18 |
| 839 | i++ |
| 840 | i = encodeVarintTypes(dAtA, i, uint64(m.Precision)) |
| 841 | if len(m.ArrayDimensions) > 0 { |
| 842 | for _, num := range m.ArrayDimensions { |
| 843 | dAtA[i] = 0x20 |
| 844 | i++ |
| 845 | i = encodeVarintTypes(dAtA, i, uint64(num)) |
| 846 | } |
| 847 | } |
| 848 | if m.Locale != nil { |
| 849 | dAtA[i] = 0x2a |
| 850 | i++ |
| 851 | i = encodeVarintTypes(dAtA, i, uint64(len(*m.Locale))) |
| 852 | i += copy(dAtA[i:], *m.Locale) |
| 853 | } |
| 854 | dAtA[i] = 0x30 |
| 855 | i++ |
| 856 | i = encodeVarintTypes(dAtA, i, uint64(m.VisibleType)) |
| 857 | if m.ArrayElemType != nil { |
| 858 | dAtA[i] = 0x38 |
| 859 | i++ |
| 860 | i = encodeVarintTypes(dAtA, i, uint64(*m.ArrayElemType)) |
| 861 | } |
| 862 | if len(m.TupleContents) > 0 { |
| 863 | for _, msg := range m.TupleContents { |
| 864 | dAtA[i] = 0x42 |
| 865 | i++ |
| 866 | i = encodeVarintTypes(dAtA, i, uint64(msg.Size())) |
| 867 | n, err := msg.MarshalTo(dAtA[i:]) |
| 868 | if err != nil { |
| 869 | return 0, err |
| 870 | } |
| 871 | i += n |
| 872 | } |
| 873 | } |
| 874 | if len(m.TupleLabels) > 0 { |
| 875 | for _, s := range m.TupleLabels { |
| 876 | dAtA[i] = 0x4a |
| 877 | i++ |
| 878 | l = len(s) |
| 879 | for l >= 1<<7 { |
| 880 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 881 | l >>= 7 |
| 882 | i++ |
| 883 | } |
| 884 | dAtA[i] = uint8(l) |
no test coverage detected