nsILDAPBERElement
| IID: | 409f5b31-c062-4d11-a35b-0a09e7967bf2 |
| Inherits From: | nsISupports |
nsILDAPBERElement is a wrapper interface for a C-SDK BerElement object. Typically, this is used as an intermediate object to aid in the manual construction of a BER value. Once the construction is completed by calling methods on this object, an nsILDAPBERValue can be retrieved from the asValue attribute on this interface.
Constants
Properties
readonly nsILDAPBERValue asValue
An nsILDAPBERValue version of this element. Calls ber_flatten() under the hood.
Methods
void init ( nsILDAPBERValue value )
PRUint32 putSet ( )
PRUint32 putString ( AUTF8String string , PRUint32 tag )
void startSet ( PRUint32 tag )
void init ( nsILDAPBERValue value )
Initialize this object. Must be called before calling any other method on this interface.
- Arguments:
- value: value to preinitialize with; 0 for a new empty object
Cause the entire set started by the last startSet() call to be written.
- Returns:
- number of bytes written
PRUint32 putString ( AUTF8String string , PRUint32 tag )
Write a string to this element.
- Arguments:
- string: string to write
- tag: tag for this string (if TAG_LBER_DEFAULT is used, TAG_LBER_OCTETSTRING will be written).
- Returns:
- number of bytes written
void startSet ( PRUint32 tag )
Start a set. Sets may be nested.
- Arguments:
- tag: tag for this set (if TAG_LBER_DEFAULT is used, TAG_LBER_SET will be written).
Reference documentation is generated from Mozilla's source.
