Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsILDAPBERValue Interface Reference

Representation of a BER value as an interface containing an array of bytes. More...

import "nsILDAPBERValue.idl";

Inheritance diagram for nsILDAPBERValue:
Inheritance graph
[legend]
Collaboration diagram for nsILDAPBERValue:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void set (in unsigned long aCount,[array, size_is(aCount)] in octet aValue)
 Set the BER value from an array of bytes (copies).
void setFromUTF8 (in AUTF8String aValue)
 Set the BER value from a UTF8 string (copies).
void get (out unsigned long aCount,[retval, array, size_is(aCount)] out octet aRetVal)
 Get the BER value as an array of bytes.

Detailed Description

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

Definition at line 49 of file nsILDAPBERValue.idl.


Member Function Documentation

void nsILDAPBERValue::get ( out unsigned long  aCount,
[retval, array, size_is(aCount)] out octet  aRetVal 
)

Get the BER value as an array of bytes.

Note that if this value is zero-length, aCount and aRetVal will both be 0. This means that (in C++ anyway) the caller MUST test either aCount or aRetval before dereferencing aRetVal.

Exceptions:
NS_ERROR_OUT_OF_MEMORYcouldn't allocate buffer to copy to
void nsILDAPBERValue::set ( in unsigned long  aCount,
[array, size_is(aCount)] in octet  aValue 
)

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

Exceptions:
NS_ERROR_OUT_OF_MEMORYcouldn't allocate buffer to copy to
void nsILDAPBERValue::setFromUTF8 ( in AUTF8String  aValue)

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

Exceptions:
NS_ERROR_OUT_OF_MEMORYcouldn't allocate buffer to copy to

The documentation for this interface was generated from the following file: