diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs b/Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs new file mode 100644 index 000000000..2df616ab8 --- /dev/null +++ b/Software/Visual_Studio/Tango.RemoteDesktop/IFrameEncoder.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.RemoteDesktop +{ + /// <summary> + /// Represents an <see cref="IFrame"/> encoder. + /// </summary> + public interface IFrameEncoder + { + /// <summary> + /// Gets the frame instance. + /// </summary> + IFrame Frame { get; } + + /// <summary> + /// Returns a byte array containing the encoded frame. + /// </summary> + /// <returns></returns> + byte[] ToArray(); + + /// <summary> + /// Returns a stream containing the encoded frame. + /// </summary> + /// <returns></returns> + MemoryStream ToStream(); + } +} |
