⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 coderenv.cxx

📁 asn格式文件的编译器
💻 CXX
字号:
/* * CoderEnv.cxx * * Copyright (c) 2001 Institute for Information Industry, Taiwan, Republic of China  * (http://www.iii.org.tw/iiia/ewelcome.htm) * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See * the License for the specific language governing rights and limitations * under the License. * * The Original Code is III ASN.1 Tool * * The Initial Developer of the Original Code is Institute for Information Industry. * * Portions are Copyright (C) 1993 Free Software Foundation, Inc. * All Rights Reserved. * * Contributor(s): Huang-Ming Huang  * * 2001/06/26 Huang-Ming Huang  * Version 2.1 Reimplemented to minimize the code size. * */#ifdef _MSC_VER#pragma warning(disable: 4786)#endif#ifdef HAVE_CONFIG_H#include <config.h>#endif#include "asn1.h"namespace ASN1 {   bool CoderEnv::decode(const char* first, const char* last, AbstractData& val, bool defered){	if (get_encodingRule() == per_Basic_Aligned)    {        PERDecoder decoder(first, last, defered ? NULL : this);		return val.accept(decoder);    }	if (get_encodingRule() == ber)    {        BERDecoder decoder(first, last, defered ? NULL : this);		return val.accept(decoder);    }#ifdef ASN1_HAS_IOSTREAM	if (get_encodingRule() == avn)	{		std::istringstream strm(std::string(first, last));    	AVNDecoder decoder(strm);		return val.accept(decoder);	}#endif	return false;}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -