Resource
stream-object-names
this defines the stream-object-names resource which is a representation of stream<object-name>
resource stream-object-names;F read-stream-object-names
read-stream-object-names: func(len: u64) -> result<tuple<list<object-name>, bool>, error>;reads the next number of objects from the stream
This function returns the list of objects read, and a boolean indicating if the end of the stream was reached.
F skip-stream-object-names
skip-stream-object-names: func(num: u64) -> result<tuple<u64, bool>, error>;skip the next number of objects in the stream
This function returns the number of objects skipped, and a boolean indicating if the end of the stream was reached.