We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code as the flow: `func UnmarshalIntVector(size int, data string) ([]int32, error) { if size < 0 { return parseInt32(data) } var out []int32 if size > 0 { out = make([]int32, 0, size) } err := sonic.UnmarshalString(data, &out) if err != nil { return nil, fmt.Errorf("UnmarshalIntVector json error: %s", err.Error()) }
if size == 0 { return out, nil } length := len(out) if size != length { return nil, fmt.Errorf("UnmarshalIntVector needed size %d != len %d", size, length) } return out, nil
}`
The text was updated successfully, but these errors were encountered:
Didn't get what you mean. give more explaination
Sorry, something went wrong.
No branches or pull requests
code as the flow:
`func UnmarshalIntVector(size int, data string) ([]int32, error) {
if size < 0 {
return parseInt32(data)
}
var out []int32
if size > 0 {
out = make([]int32, 0, size)
}
err := sonic.UnmarshalString(data, &out)
if err != nil {
return nil, fmt.Errorf("UnmarshalIntVector json error: %s", err.Error())
}
}`
The text was updated successfully, but these errors were encountered: