WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsILDAPBERValue

IID:c817c5fe-1dd1-11b2-a10b-ae9885762ea9
Inherits From:nsISupports

Representation of a BER value as an interface containing an array of bytes. Someday this should perhaps be obsoleted by a better, more generalized version of nsIByteBuffer, but that's currently not even scriptable (see bug 125596).

This interface is implemented by the following components:


Methods

void get ( out PRUint32 count , out arrayof PRUint8 retVal ) void set ( PRUint32 count , arrayof PRUint8 value ) void setFromUTF8 ( AUTF8String value )

void get ( out PRUint32 count , out arrayof PRUint8 retVal )

Get the BER value as an array of bytes. Note that if this value is zero-length, count and retVal will both be 0. This means that (in C++ anyway) the caller MUST test either count or retval before dereferencing retVal.

Arguments:
count
retVal

void set ( PRUint32 count , arrayof PRUint8 value )

Set the BER value from an array of bytes (copies).

Arguments:
count
value

void setFromUTF8 ( AUTF8String value )

Set the BER value from a UTF8 string (copies).

Arguments:
value

References

This interface is the type of the following properties:

nsILDAPBERElement.asValue, nsILDAPControl.value

This interface is passed as an argument to the following methods:

nsILDAPBERElement.init, nsILDAPModification.setUpModificationOneValue

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com