Discuss this help topic in SecureBlackbox Forum

TElPKCS7Attributes.SaveToBuffer

TElPKCS7Attributes     See also     


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


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

Declaration

[C#/Java]
    bool SaveToBuffer(ref byte[] Buffer, ref int Size);

[VB.NET]
    Function SaveToBuffer(ByRef Buffer As Byte(), ByRef Size As Integer) As Boolean

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

[C++]
    bool SaveToBuffer(void * Buffer, int32_t &Size);

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

Parameters

  • 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.

Description

    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