/// <summary> /// Writes an attributes collection to the given stream and prefixed with it's size. /// </summary> public static long WriteWithSize(this IAttributeCollection attributes, System.IO.Stream stream) { return(attributes.SerializeWithSize(stream)); }