DecodeUntaggedGeoValue decodes a value encoded by EncodeUntaggedGeoValue into the provided geopb.SpatialObject reference. The so parameter must already be empty/reset.
(b []byte, so *geopb.SpatialObject)
| 3058 | // the provided geopb.SpatialObject reference. The so parameter must already be |
| 3059 | // empty/reset. |
| 3060 | func DecodeUntaggedGeoValue(b []byte, so *geopb.SpatialObject) (remaining []byte, err error) { |
| 3061 | var data []byte |
| 3062 | remaining, data, err = DecodeUntaggedBytesValue(b) |
| 3063 | if err != nil { |
| 3064 | return b, err |
| 3065 | } |
| 3066 | // Not using protoutil.Unmarshal since the call to so.Reset() will waste the |
| 3067 | // pre-allocated EWKB. |
| 3068 | err = so.Unmarshal(data) |
| 3069 | return remaining, err |
| 3070 | } |
| 3071 | |
| 3072 | // DecodeUntaggedDecimalValue decodes a value encoded by EncodeUntaggedDecimalValue. |
| 3073 | func DecodeUntaggedDecimalValue(b []byte) (remaining []byte, d apd.Decimal, err error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…