GetReadObject returns the object for the specified id.
(refId int32)
| 271 | |
| 272 | // GetReadObject returns the object for the specified id. |
| 273 | func (r *RefResolver) GetReadObject(refId int32) reflect.Value { |
| 274 | if !r.refTracking { |
| 275 | return reflect.Value{} |
| 276 | } |
| 277 | if refId < 0 { |
| 278 | return r.readObject |
| 279 | } |
| 280 | if int(refId) >= len(r.readObjects) { |
| 281 | return reflect.Value{} |
| 282 | } |
| 283 | return r.readObjects[refId] |
| 284 | } |
| 285 | |
| 286 | func (r *RefResolver) GetCurrentReadObject() reflect.Value { |
| 287 | return r.readObject |
no outgoing calls