Class UF2
Helper class for the UF2 file format
Inheritance
System.Object
UF2
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DuetControlServer.Utility
Assembly: DuetControlServer.dll
Syntax
public static class UF2
Methods
Unpack(Stream)
Unpack the first file from the given UF2 stream
Declaration
public static Task<MemoryStream> Unpack(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Data stream |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.IO.MemoryStream> | Unpacked file |
Exceptions
Type | Condition |
---|---|
System.IO.IOException | Invalid UF2 data |