summary refs log tree commit diff
path: root/crypto/src/util/IEncodable.cs
blob: 3a9080c8408a172b94eb56ec0a1678680f6e8837 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.IO;

namespace Org.BouncyCastle.Utilities
{
    public interface IEncodable
    {
        /// <summary>Return a byte array representing the implementing object.</summary>
        /// <returns>An encoding of this object as a byte array.</returns>
        /// <exception cref="IOException"/>
        byte[] GetEncoded();

        // TODO[api]
        //void EncodeTo(Stream output);
    }
}