/// <summary> /// Create a GeneralizedContent object to fetch the _meta packet for a /// generalized content and, if necessary, assemble the contents of segment /// packets into a single block of memory. You should use /// nameSpace.addOnContentSet to add the callback which is called when the /// child _meta node has the ContentMetaInfo object and, if necessary, when /// the segmented content is complete. After creating this, you should call /// start(). /// </summary> /// <param name="nameSpace">The Namespace node whose children are the names /// of segment Data packets. This is used to create a SegmentStream which /// you can access with getSegmentStream().</param> public GeneralizedContent(Namespace nameSpace) { namespace_ = nameSpace; }
/// <summary> /// Create a SegmentStream object to attach to the given namespace. You can /// add callbacks and set options, then you should call start(). /// </summary> /// <param name="nameSpace">The Namespace node whose children are the names /// of segment Data packets.</param> public SegmentStream(Namespace nameSpace) { namespace_ = nameSpace; namespace_.addOnContentSet(onContentSet); }