|
|
@ -939,6 +939,67 @@ func (m *BlockMeta) GetNumTxs() int64 { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
|
|
|
|
// TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree.
|
|
|
|
type TxProof struct { |
|
|
|
RootHash []byte `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"` |
|
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` |
|
|
|
Proof *merkle.Proof `protobuf:"bytes,3,opt,name=Proof,proto3" json:"Proof,omitempty"` |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxProof) Reset() { *m = TxProof{} } |
|
|
|
func (m *TxProof) String() string { return proto.CompactTextString(m) } |
|
|
|
func (*TxProof) ProtoMessage() {} |
|
|
|
func (*TxProof) Descriptor() ([]byte, []int) { |
|
|
|
return fileDescriptor_ff06f8095857fb18, []int{11} |
|
|
|
} |
|
|
|
func (m *TxProof) XXX_Unmarshal(b []byte) error { |
|
|
|
return m.Unmarshal(b) |
|
|
|
} |
|
|
|
func (m *TxProof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
if deterministic { |
|
|
|
return xxx_messageInfo_TxProof.Marshal(b, m, deterministic) |
|
|
|
} else { |
|
|
|
b = b[:cap(b)] |
|
|
|
n, err := m.MarshalToSizedBuffer(b) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return b[:n], nil |
|
|
|
} |
|
|
|
} |
|
|
|
func (m *TxProof) XXX_Merge(src proto.Message) { |
|
|
|
xxx_messageInfo_TxProof.Merge(m, src) |
|
|
|
} |
|
|
|
func (m *TxProof) XXX_Size() int { |
|
|
|
return m.Size() |
|
|
|
} |
|
|
|
func (m *TxProof) XXX_DiscardUnknown() { |
|
|
|
xxx_messageInfo_TxProof.DiscardUnknown(m) |
|
|
|
} |
|
|
|
|
|
|
|
var xxx_messageInfo_TxProof proto.InternalMessageInfo |
|
|
|
|
|
|
|
func (m *TxProof) GetRootHash() []byte { |
|
|
|
if m != nil { |
|
|
|
return m.RootHash |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxProof) GetData() []byte { |
|
|
|
if m != nil { |
|
|
|
return m.Data |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxProof) GetProof() *merkle.Proof { |
|
|
|
if m != nil { |
|
|
|
return m.Proof |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func init() { |
|
|
|
proto.RegisterEnum("tendermint.proto.types.BlockIDFlag", BlockIDFlag_name, BlockIDFlag_value) |
|
|
|
proto.RegisterEnum("tendermint.proto.types.SignedMsgType", SignedMsgType_name, SignedMsgType_value) |
|
|
@ -953,92 +1014,96 @@ func init() { |
|
|
|
proto.RegisterType((*Proposal)(nil), "tendermint.proto.types.Proposal") |
|
|
|
proto.RegisterType((*SignedHeader)(nil), "tendermint.proto.types.SignedHeader") |
|
|
|
proto.RegisterType((*BlockMeta)(nil), "tendermint.proto.types.BlockMeta") |
|
|
|
proto.RegisterType((*TxProof)(nil), "tendermint.proto.types.TxProof") |
|
|
|
} |
|
|
|
|
|
|
|
func init() { proto.RegisterFile("proto/types/types.proto", fileDescriptor_ff06f8095857fb18) } |
|
|
|
|
|
|
|
var fileDescriptor_ff06f8095857fb18 = []byte{ |
|
|
|
// 1274 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x4d, 0x6f, 0x1a, 0x47, |
|
|
|
0x18, 0xf6, 0xc2, 0x62, 0xe0, 0x05, 0x6c, 0xbc, 0x72, 0x13, 0x8a, 0x5b, 0x4c, 0x70, 0x93, 0x3a, |
|
|
|
0x69, 0x04, 0x95, 0x2b, 0x55, 0x8d, 0xd4, 0x0b, 0x5f, 0x71, 0x50, 0x6c, 0x40, 0x0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 0xf1, 0x3a, 0x8d, 0xb5, 0x1a, 0x6a, 0x9c, 0x25, 0x5b, 0xba, 0x72, 0x0d, 0xd6, |
|
|
|
0x47, 0xd8, 0x34, 0x46, 0x84, 0x49, 0x15, 0x55, 0xc5, 0x48, 0xf9, 0x02, 0x64, 0x6a, 0x8f, 0x9c, |
|
|
|
0xcc, 0x56, 0x90, 0x2f, 0x73, 0xef, 0x94, 0x03, 0xef, 0x94, 0xfb, 0x81, 0x77, 0x6a, 0x09, 0x3a, |
|
|
|
0xf1, 0xb3, 0xdf, 0x77, 0x25, 0x95, 0x31, 0x94, 0x16, 0x64, 0x2c, 0xe4, 0x13, 0x6d, 0x40, 0xd5, |
|
|
|
0xa3, 0xd3, 0xc7, 0x58, 0x89, 0xdd, 0x55, 0xd2, 0x08, 0x95, 0x03, 0x51, 0x28, 0x97, 0x87, 0x74, |
|
|
|
0x65, 0x1f, 0xb2, 0xac, 0xd4, 0xd0, 0x19, 0x8f, 0x4d, 0xa2, 0xb1, 0x4d, 0x58, 0x67, 0x9b, 0xb0, |
|
|
|
0x41, 0xe3, 0x75, 0x16, 0x7e, 0x40, 0xb7, 0x63, 0x07, 0x92, 0x3a, 0x22, 0x88, 0x43, 0xe2, 0x0c, |
|
|
|
0x92, 0xa0, 0x01, 0x96, 0xfc, 0x18, 0x36, 0x4f, 0x90, 0x65, 0xea, 0x88, 0x38, 0x9e, 0xcf, 0x21, |
|
|
|
0x09, 0x5e, 0x65, 0x16, 0x66, 0xc0, 0x4f, 0x61, 0xdb, 0xc6, 0xa7, 0x44, 0x7b, 0x1d, 0x9d, 0x64, |
|
|
|
0x68, 0x85, 0xe6, 0x1e, 0x2d, 0x32, 0x6e, 0xc2, 0xc6, 0x30, 0xd8, 0x02, 0x8e, 0x05, 0x86, 0xcd, |
|
|
|
0x84, 0x51, 0x06, 0x7b, 0x1f, 0x12, 0xc8, 0x75, 0x39, 0x20, 0xc5, 0x00, 0x71, 0xe4, 0xba, 0x2c, |
|
|
|
0x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0x0c, 0xca, 0x43, 0x67, 0x5c, 0x99, |
|
|
|
0xed, 0xea, 0xfc, 0xe7, 0xdc, 0x8f, 0x8a, 0xc1, 0x3a, 0x1b, 0x7c, 0xf6, 0x77, 0x00, 0x00, 0x00, |
|
|
|
0xff, 0xff, 0x94, 0x73, 0x22, 0x3b, 0x6a, 0x0c, 0x00, 0x00, |
|
|
|
// 1317 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0x41, 0x6f, 0x1b, 0xc5, |
|
|
|
0x17, 0xcf, 0xda, 0xeb, 0xd8, 0x7e, 0xb6, 0x13, 0x67, 0x95, 0x7f, 0xeb, 0xbf, 0x03, 0x8e, 0xeb, |
|
|
|
0xd0, 0x92, 0x96, 0xca, 0x46, 0x41, 0x42, 0x54, 0x70, 0xb1, 0x93, 0x34, 0xb5, 0x9a, 0x38, 0xd6, |
|
|
|
0xda, 0x14, 0xc1, 0x65, 0xb5, 0xf6, 0x4e, 0xed, 0x55, 0xd7, 0x3b, 0xab, 0xdd, 0x71, 0x48, 0x7a, |
|
|
|
0xe0, 0x8c, 0x72, 0xea, 0x17, 0xc8, 0xa9, 0x20, 0xf1, 0x2d, 0xe0, 0xd8, 0x13, 0xea, 0x91, 0x53, |
|
|
|
0x41, 0xc9, 0x37, 0x40, 0x7c, 0x00, 0x34, 0x6f, 0x66, 0xd7, 0x76, 0x93, 0x40, 0xa0, 0x15, 0x97, |
|
|
|
0x64, 0xe6, 0xbd, 0xdf, 0x7b, 0x33, 0xef, 0x37, 0xbf, 0x99, 0xb7, 0x86, 0xeb, 0x9e, 0x4f, 0x19, |
|
|
|
0xad, 0xb1, 0x23, 0x8f, 0x04, 0xe2, 0x6f, 0x15, 0x2d, 0xda, 0x35, 0x46, 0x5c, 0x8b, 0xf8, 0x23, |
|
|
|
0xdb, 0x65, 0xc2, 0x52, 0x45, 0x6f, 0xf1, 0x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x79, |
|
|
|
0x3c, 0x84, 0x05, 0x6e, 0xdf, 0x44, 0xf3, 0x03, 0x7e, 0x1c, 0x2b, 0x90, 0xb6, 0x4c, 0x66, 0x0a, |
|
|
|
0x48, 0x12, 0x21, 0x29, 0x6e, 0x40, 0xe7, 0xfb, 0xb0, 0x78, 0x60, 0x3a, 0xb6, 0x65, 0x32, 0xea, |
|
|
|
0x07, 0x02, 0x92, 0x12, 0x59, 0x26, 0x66, 0x04, 0x7e, 0x08, 0xcb, 0x2e, 0x39, 0x64, 0xc6, 0xeb, |
|
|
|
0xe8, 0x34, 0xa2, 0x35, 0xee, 0x7b, 0x34, 0x1b, 0x71, 0x13, 0x16, 0xfa, 0xe1, 0x11, 0x08, 0x2c, |
|
|
|
0x20, 0x36, 0x17, 0x59, 0x11, 0xf6, 0x7f, 0x48, 0x99, 0x9e, 0x27, 0x00, 0x19, 0x04, 0x24, 0x4d, |
|
|
|
0xcf, 0x43, 0xd7, 0x1d, 0x58, 0xc2, 0x1a, 0x7d, 0x12, 0x8c, 0x1d, 0x26, 0x93, 0x64, 0x11, 0xb3, |
|
|
|
0xc8, 0x1d, 0xba, 0xb0, 0x23, 0x76, 0x0d, 0x72, 0xe4, 0xc0, 0xb6, 0x88, 0xdb, 0x27, 0x02, 0x97, |
|
|
|
0x43, 0x5c, 0x36, 0x34, 0x22, 0xe8, 0x36, 0xe4, 0x3d, 0x9f, 0x7a, 0x34, 0x20, 0xbe, 0x61, 0x5a, |
|
|
|
0x96, 0x4f, 0x82, 0xa0, 0xb0, 0x20, 0xf2, 0x85, 0xf6, 0xba, 0x30, 0x57, 0xee, 0x82, 0xba, 0x65, |
|
|
|
0x32, 0x53, 0xcb, 0x43, 0x9c, 0x1d, 0x06, 0x05, 0xa5, 0x1c, 0x5f, 0xcf, 0xea, 0x7c, 0x78, 0xe1, |
|
|
|
0x45, 0xfc, 0x23, 0x06, 0xea, 0x23, 0xca, 0x88, 0x76, 0x0f, 0x54, 0x7e, 0x74, 0xa8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72, 0x33, 0xd7, 0x53, 0x5b, 0x81, |
|
|
|
0xeb, 0x9d, 0xe6, 0x4e, 0x6b, 0x7b, 0xcb, 0xd8, 0xeb, 0xec, 0x18, 0xdd, 0x2f, 0xdb, 0xdb, 0x53, |
|
|
|
0x55, 0xdc, 0x80, 0x6c, 0x5b, 0xdf, 0x7e, 0xb4, 0xdf, 0xdd, 0x46, 0x4f, 0x5e, 0x29, 0x2e, 0x1e, |
|
|
|
0x9f, 0x94, 0x33, 0x6d, 0x9f, 0x1c, 0x50, 0x46, 0x30, 0xfe, 0x26, 0x2c, 0xb4, 0xf5, 0x6d, 0xb1, |
|
|
|
0x59, 0x01, 0x8a, 0x15, 0x97, 0x8e, 0x4f, 0xca, 0xb9, 0xb6, 0x4f, 0x84, 0x02, 0x11, 0xb6, 0x06, |
|
|
|
0xb9, 0xb6, 0xbe, 0xdf, 0xde, 0xef, 0xd4, 0x77, 0x05, 0x2a, 0x5e, 0xcc, 0x1f, 0x9f, 0x94, 0xb3, |
|
|
|
0xe1, 0xdb, 0xc2, 0x41, 0x93, 0x7d, 0x36, 0xee, 0xbf, 0x38, 0x2d, 0x29, 0x2f, 0x4f, 0x4b, 0xca, |
|
|
|
0x6f, 0xa7, 0x25, 0xe5, 0xd9, 0x59, 0x69, 0xee, 0xe5, 0x59, 0x69, 0xee, 0x97, 0xb3, 0xd2, 0xdc, |
|
|
|
0x57, 0x77, 0x07, 0x36, 0x1b, 0x8e, 0x7b, 0xd5, 0x3e, 0x1d, 0xd5, 0x26, 0x87, 0x37, 0x3d, 0x9c, |
|
|
|
0xfa, 0x35, 0xd3, 0x9b, 0xc7, 0xc9, 0x47, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x21, 0xb8, 0xcf, |
|
|
|
0x26, 0xe3, 0x0c, 0x00, 0x00, |
|
|
|
} |
|
|
|
|
|
|
|
func (m *PartSetHeader) Marshal() (dAtA []byte, err error) { |
|
|
@ -1695,6 +1760,55 @@ func (m *BlockMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxProof) Marshal() (dAtA []byte, err error) { |
|
|
|
size := m.Size() |
|
|
|
dAtA = make([]byte, size) |
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
if err != nil { |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
return dAtA[:n], nil |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxProof) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
size := m.Size() |
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxProof) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
i := len(dAtA) |
|
|
|
_ = i |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
if m.Proof != nil { |
|
|
|
{ |
|
|
|
size, err := m.Proof.MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
if err != nil { |
|
|
|
return 0, err |
|
|
|
} |
|
|
|
i -= size |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size)) |
|
|
|
} |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x1a |
|
|
|
} |
|
|
|
if len(m.Data) > 0 { |
|
|
|
i -= len(m.Data) |
|
|
|
copy(dAtA[i:], m.Data) |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.Data))) |
|
|
|
i-- |
|
|
|
dAtA[i] = 0x12 |
|
|
|
} |
|
|
|
if len(m.RootHash) > 0 { |
|
|
|
i -= len(m.RootHash) |
|
|
|
copy(dAtA[i:], m.RootHash) |
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.RootHash))) |
|
|
|
i-- |
|
|
|
dAtA[i] = 0xa |
|
|
|
} |
|
|
|
return len(dAtA) - i, nil |
|
|
|
} |
|
|
|
|
|
|
|
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int { |
|
|
|
offset -= sovTypes(v) |
|
|
|
base := offset |
|
|
@ -1983,6 +2097,27 @@ func (m *BlockMeta) Size() (n int) { |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
|
func (m *TxProof) Size() (n int) { |
|
|
|
if m == nil { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
var l int |
|
|
|
_ = l |
|
|
|
l = len(m.RootHash) |
|
|
|
if l > 0 { |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
} |
|
|
|
l = len(m.Data) |
|
|
|
if l > 0 { |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
} |
|
|
|
if m.Proof != nil { |
|
|
|
l = m.Proof.Size() |
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
} |
|
|
|
return n |
|
|
|
} |
|
|
|
|
|
|
|
func sovTypes(x uint64) (n int) { |
|
|
|
return (math_bits.Len64(x|1) + 6) / 7 |
|
|
|
} |
|
|
@ -4157,6 +4292,163 @@ func (m *BlockMeta) Unmarshal(dAtA []byte) error { |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
func (m *TxProof) Unmarshal(dAtA []byte) error { |
|
|
|
l := len(dAtA) |
|
|
|
iNdEx := 0 |
|
|
|
for iNdEx < l { |
|
|
|
preIndex := iNdEx |
|
|
|
var wire uint64 |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
wire |= uint64(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
fieldNum := int32(wire >> 3) |
|
|
|
wireType := int(wire & 0x7) |
|
|
|
if wireType == 4 { |
|
|
|
return fmt.Errorf("proto: TxProof: wiretype end group for non-group") |
|
|
|
} |
|
|
|
if fieldNum <= 0 { |
|
|
|
return fmt.Errorf("proto: TxProof: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
} |
|
|
|
switch fieldNum { |
|
|
|
case 1: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RootHash", wireType) |
|
|
|
} |
|
|
|
var byteLen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
byteLen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if byteLen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + byteLen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
m.RootHash = append(m.RootHash[:0], dAtA[iNdEx:postIndex]...) |
|
|
|
if m.RootHash == nil { |
|
|
|
m.RootHash = []byte{} |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
case 2: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) |
|
|
|
} |
|
|
|
var byteLen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
byteLen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if byteLen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + byteLen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...) |
|
|
|
if m.Data == nil { |
|
|
|
m.Data = []byte{} |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
case 3: |
|
|
|
if wireType != 2 { |
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Proof", wireType) |
|
|
|
} |
|
|
|
var msglen int |
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
if shift >= 64 { |
|
|
|
return ErrIntOverflowTypes |
|
|
|
} |
|
|
|
if iNdEx >= l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
b := dAtA[iNdEx] |
|
|
|
iNdEx++ |
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
if b < 0x80 { |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
if msglen < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
postIndex := iNdEx + msglen |
|
|
|
if postIndex < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if postIndex > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
if m.Proof == nil { |
|
|
|
m.Proof = &merkle.Proof{} |
|
|
|
} |
|
|
|
if err := m.Proof.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
iNdEx = postIndex |
|
|
|
default: |
|
|
|
iNdEx = preIndex |
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:]) |
|
|
|
if err != nil { |
|
|
|
return err |
|
|
|
} |
|
|
|
if skippy < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
return ErrInvalidLengthTypes |
|
|
|
} |
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
iNdEx += skippy |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
func skipTypes(dAtA []byte) (n int, err error) { |
|
|
|
l := len(dAtA) |
|
|
|
iNdEx := 0 |
|
|
|