📄 asner_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>asner.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>asner.h</h1><a href="asner_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * asner.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Abstract Syntax Notation Encoding Rules classes</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 1993-2002 Equivalence Pty. Ltd.</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Equivalence Pty. Ltd.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: asner.h,v $</span>00027 <span class="comment"> * Revision 1.43 2004/04/18 04:33:35 rjongbloed</span>00028 <span class="comment"> * Changed all operators that return BOOL to return standard type bool. This is primarily</span>00029 <span class="comment"> * for improved compatibility with std STL usage removing many warnings.</span>00030 <span class="comment"> *</span>00031 <span class="comment"> * Revision 1.42 2003/12/14 10:21:29 rjongbloed</span>00032 <span class="comment"> * Fixed bug in length incorrectlty decoded from ASN and (apparently) rare circumstances. Thanks pangxg@hotmail.com.</span>00033 <span class="comment"> * Cleaned up return values to be BOOL rather than int for some functions.</span>00034 <span class="comment"> *</span>00035 <span class="comment"> * Revision 1.41 2003/08/18 23:32:22 rjongbloed</span>00036 <span class="comment"> * Micro optimisation suggested by Chih-Wei Huang</span>00037 <span class="comment"> *</span>00038 <span class="comment"> * Revision 1.40 2003/08/01 16:00:51 csoutheren</span>00039 <span class="comment"> * Changed #if to #ifdef to (maybe) avoid compiler problems with gcc 2.95.2</span>00040 <span class="comment"> *</span>00041 <span class="comment"> * Revision 1.39 2003/08/01 02:12:34 csoutheren</span>00042 <span class="comment"> * Changed to allow easy isolation of PER, BER and XER encoding/decoding routines</span>00043 <span class="comment"> *</span>00044 <span class="comment"> * Revision 1.38 2003/04/22 23:39:09 craigs</span>00045 <span class="comment"> * Changed some functions from protected to public for MacOSX. Thanks to Hugo Santos</span>00046 <span class="comment"> *</span>00047 <span class="comment"> * Revision 1.37 2003/04/17 14:44:44 craigs</span>00048 <span class="comment"> * Removed MacOS specific defines to make some attributes public</span>00049 <span class="comment"> * Thanks to Hugo Santos and apologies to Roger Hardiman</span>00050 <span class="comment"> *</span>00051 <span class="comment"> * Revision 1.36 2003/02/26 01:57:44 robertj</span>00052 <span class="comment"> * Added XML encoding rules to ASN system, thanks Federico Pinna</span>00053 <span class="comment"> *</span>00054 <span class="comment"> * Revision 1.35 2003/02/01 13:25:52 robertj</span>00055 <span class="comment"> * Added function to add new elements directly to ASN array.</span>00056 <span class="comment"> *</span>00057 <span class="comment"> * Revision 1.34 2003/01/24 23:43:43 robertj</span>00058 <span class="comment"> * Fixed subtle problems with the use of MAX keyword for unsigned numbers,</span>00059 <span class="comment"> * should beUINT_MAX not INT_MAX, thanks Stevie Gray for pointing it out.</span>00060 <span class="comment"> *</span>00061 <span class="comment"> * Revision 1.33 2002/11/26 23:29:18 robertj</span>00062 <span class="comment"> * Added missing const to DecodeSubType() function.</span>00063 <span class="comment"> *</span>00064 <span class="comment"> * Revision 1.32 2002/11/06 22:47:23 robertj</span>00065 <span class="comment"> * Fixed header comment (copyright etc)</span>00066 <span class="comment"> *</span>00067 <span class="comment"> * Revision 1.31 2002/10/31 05:50:49 robertj</span>00068 <span class="comment"> * Changed to use new UTF-8/UCS-2 conversion functions on PString.</span>00069 <span class="comment"> *</span>00070 <span class="comment"> * Revision 1.30 2002/10/10 14:37:40 rogerh</span>00071 <span class="comment"> * In two of the PASN classes make the protected members public. This</span>00072 <span class="comment"> * makes OpenH323 compile in Mac OS X 10.2.1</span>00073 <span class="comment"> *</span>00074 <span class="comment"> * Revision 1.29 2002/09/16 01:08:59 robertj</span>00075 <span class="comment"> * Added #define so can select if #pragma interface/implementation is used on</span>00076 <span class="comment"> * platform basis (eg MacOS) rather than compiler, thanks Robert Monaghan.</span>00077 <span class="comment"> *</span>00078 <span class="comment"> * Revision 1.28 2002/05/29 01:22:35 robertj</span>00079 <span class="comment"> * Added ability to set object id from unsigned integer arrays.</span>00080 <span class="comment"> *</span>00081 <span class="comment"> * Revision 1.27 2002/05/21 04:23:40 robertj</span>00082 <span class="comment"> * Fixed problem with ASN encoding/decoding unsconstrained negative numbers,</span>00083 <span class="comment"> *</span>00084 <span class="comment"> * Revision 1.26 2002/05/14 06:59:31 robertj</span>00085 <span class="comment"> * Added more bullet proofing so a malformed PDU cannot cause teh decoder</span>00086 <span class="comment"> * to try and allocate huge arrays and consume all CPU and memory on a</span>00087 <span class="comment"> * system. A configurable limit of 100 is set for things like SEQUENCE OF.</span>00088 <span class="comment"> *</span>00089 <span class="comment"> * Revision 1.25 2001/12/13 09:13:28 robertj</span>00090 <span class="comment"> * Added function get get oid as a string.</span>00091 <span class="comment"> * Added functions to compare oid to PString.</span>00092 <span class="comment"> *</span>00093 <span class="comment"> * Revision 1.24 2001/09/14 01:59:59 robertj</span>00094 <span class="comment"> * Fixed problem with incorrectly initialised PASN_Choice sub-object.</span>00095 <span class="comment"> *</span>00096 <span class="comment"> * Revision 1.23 2001/08/06 01:39:02 robertj</span>00097 <span class="comment"> * Added assignement operator with RHS of PASN_BMPString to classes</span>00098 <span class="comment"> * descended from PASN_BMPString.</span>00099 <span class="comment"> *</span>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -