EncodeUntaggedGeoValue encodes a geopb.SpatialObject value, appends it to the supplied buffer, and returns the final buffer.
(appendTo []byte, so *geopb.SpatialObject)
| 2716 | // EncodeUntaggedGeoValue encodes a geopb.SpatialObject value, appends it to the supplied buffer, |
| 2717 | // and returns the final buffer. |
| 2718 | func EncodeUntaggedGeoValue(appendTo []byte, so *geopb.SpatialObject) ([]byte, error) { |
| 2719 | bytes, err := protoutil.Marshal(so) |
| 2720 | if err != nil { |
| 2721 | return nil, err |
| 2722 | } |
| 2723 | return EncodeUntaggedBytesValue(appendTo, bytes), nil |
| 2724 | } |
| 2725 | |
| 2726 | // EncodeDecimalValue encodes an apd.Decimal value with its value tag, appends |
| 2727 | // it to the supplied buffer, and returns the final buffer. |
no test coverage detected
searching dependent graphs…