Goedel.Cryptography.KeyFile.DataBuffer.Encode C# (CSharp) Method

Encode() public method

public Encode ( byte Input ) : void
Input byte
return void
        public void Encode(byte[] Input) {
            EncodeLength((uint)Input.Length);
            Array.Copy(Input, 0, Data, (int)Pointer, Input.Length);
            Pointer += (uint)(Input.Length);
            }

Same methods

DataBuffer::Encode ( string Text ) : void

Usage Example

        public override byte[] Encode() {
            var DataBuffer = new DataBuffer();

            DataBuffer.Size(Tag);
            DataBuffer.Size(P);
            DataBuffer.Size(Q);
            DataBuffer.Size(G);
            DataBuffer.Size(Y);

            DataBuffer.Allocate();

            DataBuffer.Encode(Tag);
            DataBuffer.Encode(P);
            DataBuffer.Encode(Q);
            DataBuffer.Encode(G);
            DataBuffer.Encode(Y);

            return DataBuffer.Data;
            }
All Usage Examples Of Goedel.Cryptography.KeyFile.DataBuffer::Encode