Add project
Basic formatting applied. Unnecessary comments have been removed. Suspicious code is covered by TODO.
This commit is contained in:
35
Hcs.Client/GostCryptography/Asn1/Ber/Asn1VideotexString.cs
Normal file
35
Hcs.Client/GostCryptography/Asn1/Ber/Asn1VideotexString.cs
Normal file
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
|
||||
namespace GostCryptography.Asn1.Ber
|
||||
{
|
||||
[Serializable]
|
||||
public class Asn1VideotexString : Asn1VarWidthCharString
|
||||
{
|
||||
public static readonly Asn1Tag Tag = new Asn1Tag(0, 0, VideoTexStringTypeCode);
|
||||
|
||||
public Asn1VideotexString()
|
||||
: base(VideoTexStringTypeCode)
|
||||
{
|
||||
}
|
||||
|
||||
public Asn1VideotexString(string data)
|
||||
: base(data, VideoTexStringTypeCode)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Decode(Asn1BerDecodeBuffer buffer, bool explicitTagging, int implicitLength)
|
||||
{
|
||||
Decode(buffer, explicitTagging, implicitLength, Tag);
|
||||
}
|
||||
|
||||
public override int Encode(Asn1BerEncodeBuffer buffer, bool explicitTagging)
|
||||
{
|
||||
return Encode(buffer, explicitTagging, Tag);
|
||||
}
|
||||
|
||||
public override void Encode(Asn1BerOutputStream outs, bool explicitTagging)
|
||||
{
|
||||
outs.EncodeCharString(Value, explicitTagging, Tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user