Return the length of a stream. */
| 84 | |
| 85 | /* Return the length of a stream. */ |
| 86 | unsigned long streamLength(robj_roptr subject) { |
| 87 | stream *s = (stream*)ptrFromObj(subject); |
| 88 | return s->length; |
| 89 | } |
| 90 | |
| 91 | /* Set 'id' to be its successor stream ID. |
| 92 | * If 'id' is the maximal possible id, it is wrapped around to 0-0 and a |
no test coverage detected