Discuss this help topic in SecureBlackbox Forum


TElPKCS7Attributes     See also     

Filter: C#  VB.NET  Pascal  C++  PHP  Java  

This method saves attributes to the buffer in ASN.1 format


    bool SaveToBuffer(ref byte[] Buffer, ref int Size);

    Function SaveToBuffer(ByRef Buffer As Byte(), ByRef Size As Integer) As Boolean

    function SaveToBuffer(Buffer : pointer; var Size : integer) : boolean;

    bool SaveToBuffer(void * Buffer, int32_t &Size);

    bool SaveToBuffer(TSBPointer|array of byte|string|NULL $Buffer, integer &$Size)

    boolean saveToBuffer(byte[] Buffer);
    boolean saveToBuffer(byte[] Buffer, int[] Size);


  • Buffer - Pointer to the buffer, where ASN.1 encoded attributes are written
  • Size - Size of the buffer in bytes

Return value

    True if attributes were successfully saved.
    False if the buffer is too small.
    In both cases, Size parameter is set to actual size of encoded attributes.


    Use this method to encode attributes in ASN.1 format and save encoded attributes to buffer.

See also:     Copy     FormatAttributeValue     UnformatAttributeValue    

Discuss this help topic in SecureBlackbox Forum