directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r365736 - /directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
Date Tue, 03 Jan 2006 20:26:30 GMT
Author: elecharny
Date: Tue Jan  3 12:26:26 2006
New Revision: 365736

URL: http://svn.apache.org/viewcvs?rev=365736&view=rev
Log:
added doco

Modified:
    directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java

Modified: directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
URL: http://svn.apache.org/viewcvs/directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java?rev=365736&r1=365735&r2=365736&view=diff
==============================================================================
--- directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
(original)
+++ directory/trunk/ldap-common/src/main/java/org/apache/ldap/common/asn1/pojo/psearch/PSearchControl.java
Tue Jan  3 12:26:26 2006
@@ -34,14 +34,19 @@
 
     /**
      * Compute the PSearchControl length
+     * 0x30 L1
+     *  |
+     *  +--> 0x02 0x0(1-4) [0..2^31-1] (changeTypes)
+     *  +--> 0x01 0x01 [0x00 | 0xFF] (changeOnly)
+     *  +--> 0x01 0x01 [0x00 | 0xFF] (returnRCs)
      */
     public int computeLength()
     {
         int changeTypesLength = 1 + 1 + Value.getNbBytes( changeTypes );
         int changesOnlyLength = 1 + 1 + 1;
-        int returRCsLength = 1 + 1 + 1;
+        int returnRCsLength = 1 + 1 + 1;
 
-        int psearchSeqLength = changeTypesLength + changesOnlyLength + returRCsLength;
+        int psearchSeqLength = changeTypesLength + changesOnlyLength + returnRCsLength;
         
         return  1 + Length.getNbBytes( psearchSeqLength ) + psearchSeqLength;
     }



Mime
View raw message