100+ results for 'php serialize'
Not the results you expected?
UserGroupServiceSoap.java (https://github.com/spreddy/liferay-portal.git) Java · 314 lines
42 * <p>
43 * The benefits of using the SOAP utility is that it is cross platform
44 * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
45 * even Perl, to call the generated services. One drawback of SOAP is that it is
46 * slow because it needs to serialize all calls into a text format (XML).
pbliteserializer_test.html (https://github.com/illandril/box2dweb-closure.git) HTML · 267 lines
66 // Serialize.
67 var serializer = new goog.proto2.PbLiteSerializer();
68 var pblite = serializer.serialize(message);
100 assertEquals('bar', pblite[44][1]);
102 var serializer = new goog.proto2.PbLiteSerializer();
103 // Deserialize.
104 var messageCopy =
105 serializer.deserialize(proto2.TestAllTypes.getDescriptor(), pblite);
107 assertNotEquals(messageCopy, message);
143 ];
145 var serializer = new goog.proto2.PbLiteSerializer();
146 // Deserialize.
secp256k1.c (https://gitlab.com/Ltaimao/bitcoin) C · 328 lines
2 * Copyright (c) 2013, 2014 Pieter Wuille *
3 * Distributed under the MIT software license, see the accompanying *
4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.*
5 **********************************************************************/
98 }
99 if (ret) {
100 secp256k1_ecdsa_sig_serialize(signature, signaturelen, &sig);
101 }
102 secp256k1_scalar_clear(&msg);
166 secp256k1_ge_t q;
167 if (secp256k1_ecdsa_sig_recover(&sig, &q, &m, recid)) {
168 ret = secp256k1_eckey_pubkey_serialize(&q, pubkey, pubkeylen, compressed);
169 }
170 return ret;
RavenExceptionFilterAttribute.cs (https://github.com/fitzchak/ravendb.git) C# · 275 lines
69 }
71 public static void SerializeError(HttpActionExecutedContext ctx, object error)
72 {
73 if (ctx.Request.Method == HttpMethods.Head) // head request must not return a message body in the response
85 };
87 SerializeError(ctx, new
88 {
89 //ExceptionType = e.GetType().AssemblyQualifiedName,
104 var elapsedMilliseconds = sp == null ? -1 : sp.ElapsedMilliseconds;
105 SerializeError(ctx, new
106 {
107 Url = ctx.Request.RequestUri.PathAndQuery,
API.java (https://bitbucket.org/pombredanne/linked-data-api-treemap.git) Java · 167 lines
111 public static final DatatypeProperty uriTemplate = m_model.createDatatypeProperty( "http://www.epimorphics.com/vocabularies/api#uriTemplate" );
113 /** <p>gives a SPARQL WHERE clause (GroupGraphPattern excluding {}) to filter the
114 * view (can be given in the query using _where)</p>
115 */
140 public static final OntClass ListEndpoint = m_model.createClass( "http://www.epimorphics.com/vocabularies/api#ListEndpoint" );
142 /** <p>class used to mark properties that should be serialized as if they are multivalued,
143 * irrespective of their cardinality on any particular instance</p>
144 */
acf-meta-functions.php (https://gitlab.com/suporte.spturis/carnaval2015.spturis.com.br) PHP · 384 lines
central_directory_end.php (https://github.com/TheDgtl/customisation-db.git) PHP · 237 lines
Weee.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 200 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
37 * @param \Magento\Sales\Model\Order\Invoice $invoice
38 * @return $this
39 * @SuppressWarnings(PHPMD.CyclomaticComplexity)
40 * @SuppressWarnings(PHPMD.NPathComplexity)
41 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
42 */
43 public function collect(\Magento\Sales\Model\Order\Invoice $invoice)
95 $taxRatio = [];
96 if ($item->getTaxRatio()) {
97 $taxRatio = unserialize($item->getTaxRatio());
98 }
99 $taxRatio[\Magento\Weee\Model\Total\Quote\Weee::ITEM_TYPE] = $itemWeeeTax / $orderItemWeeeTax;
ArrayObject.php (https://gitlab.com/reasonat/test8) PHP · 432 lines
w5100-spi.c (https://gitlab.com/CadeLaRen/linux) C · 466 lines
9 * http://www.wiznet.co.kr/wp-content/uploads/wiznethome/Chip/W5100/Document/W5100_Datasheet_v1.2.6.pdf
10 * http://wiznethome.cafe24.com/wp-content/uploads/wiznethome/Chip/W5200/Documents/W5200_DS_V140E.pdf
11 * http://wizwiki.net/wiki/lib/exe/fetch.php?media=products:w5500:w5500_ds_v106e_141230.pdf
12 */
115 struct w5200_spi_priv {
116 /* Serialize access to cmd_buf */
117 struct mutex cmd_lock;
260 struct w5500_spi_priv {
261 /* Serialize access to cmd_buf */
262 struct mutex cmd_lock;
Dispatcher.php (https://gitlab.com/kimting254/wbms) PHP · 486 lines
1 <?php namespace Illuminate\Events;
3 use Exception;
403 {
404 $this->resolveQueue()->push('Illuminate\Events\CallQueuedHandler@call', [
405 'class' => $class, 'method' => $method, 'data' => serialize($arguments),
406 ]);
407 }
434 $handler->queue($this->resolveQueue(), 'Illuminate\Events\CallQueuedHandler@call', [
435 'class' => $class, 'method' => $method, 'data' => serialize($arguments),
436 ]);
437 }
MetadataBatchService.php (https://github.com/richhl/kalturaCE.git) PHP · 214 lines
1 <?php
2 /**
3 * @service metadataBatch
41 // verifies that the job is of the right type
42 if($dbBatchJob->getJobType() != KalturaBatchJobType::METADATA_IMPORT)
43 throw new KalturaAPIException(APIErrors::UPDATE_EXCLUSIVE_JOB_WRONG_TYPE, $id, serialize($lockKey), serialize($job));
45 $dbBatchJob = kBatchManager::updateExclusiveBatchJob($id, $lockKey->toObject(), $job->toObject($dbBatchJob));
118 // verifies that the job is of the right type
119 if($dbBatchJob->getJobType() != KalturaBatchJobType::METADATA_TRANSFORM)
120 throw new KalturaAPIException(APIErrors::UPDATE_EXCLUSIVE_JOB_WRONG_TYPE, $id, serialize($lockKey), serialize($job));
122 $dbBatchJob = kBatchManager::updateExclusiveBatchJob($id, $lockKey->toObject(), $job->toObject($dbBatchJob));
paypal.cs (https://github.com/mono/monotouch-bindings.git) C# · 403 lines
AbstractTokenTest.php (https://gitlab.com/fabian.morales/marlon_becerra) PHP · 285 lines
44 public function serialize()
45 {
46 return serialize(array($this->credentials, parent::serialize()));
47 }
93 $token->setAttributes(array('foo' => 'bar'));
95 $uToken = unserialize(serialize($token));
97 $this->assertEquals($token->getRoles(), $uToken->getRoles());
106 $parentToken = new ConcreteToken($user, array(new SwitchUserRole('ROLE_PREVIOUS', $token)));
107 $uToken = unserialize(serialize($parentToken));
109 $this->assertEquals(
PhpReferenceCompatibility.php (https://gitlab.com/x33n/ImpressPages) PHP · 433 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
20 *
21 * This ArrayObject is a rewrite of the implementation to fix
22 * issues with php's implementation of ArrayObject where you
23 * are unable to unset multi-dimensional arrays because you
24 * need to fetch the properties / lists as references.
25 */
26 abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
27 {
28 /**
330 /**
331 * Serialize an ArrayObject
332 *
333 * @return string
soap_fault.html (https://github.com/durand54/sitellite.git) HTML · 429 lines
65 </tr>
66 <tr>
67 <td align="left" valign="top"><a href="nusoap_base.html#function_nusoap_base">nusoap_base</a>, <a href="nusoap_base.html#function_debug">debug</a>, <a href="nusoap_base.html#function_geterror">geterror</a>, <a href="nusoap_base.html#function_seterror">seterror</a>, <a href="nusoap_base.html#function_serialize_val">serialize_val</a>, <a href="nusoap_base.html#function_serializeenvelope">serializeenvelope</a>, <a href="nusoap_base.html#function_timestamp_to_iso8601">timestamp_to_iso8601</a>, <a href="nusoap_base.html#function_iso8601_to_timestamp">iso8601_to_timestamp</a>, <a href="nusoap_base.html#function_formatdump">formatdump</a></td>
68 </tr>
69 </table>
86 <tr>
87 <td align="right" valign="top">void</td>
88 <td align="left" valign="top" width="100%"><a href="#functions_serialize()" class="head">serialize()</a><br />serialize a fault<br /></td>
89 </tr>
422 </tr>
423 <tr>
424 <td align="left" valign="top">Generated on Mon, 22 Apr 2002 16:07:52 -0700 by PHPDoc v1.5 <a href="http://www.phpdoc.de/">www.phpdoc.de</a</td>
425 </tr>
426 </table>
class.splqueue.html (https://bitbucket.org/stillzhl/manuals.git) HTML · 216 lines
10 <div class="next" style="text-align: right; float: right;"><a href="splqueue.construct.html">SplQueue::__construct</a></div>
11 <div class="up"><a href="spl.datastructures.html">数据结构</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.splqueue" class="reference">
14 <h1 class="title">The SplQueue class</h1>
17 <div class="partintro"><p class="verinfo">(PHP 5 >= 5.3.0)</p>
145 )</div>
146 <div class="methodsynopsis dc-description">
147 <span class="modifier">public</span> <span class="type">string</span> <span class="methodname"><a href="spldoublylinkedlist.serialize.html" class="methodname">SplDoublyLinkedList::serialize</a></span>
148 ( <span class="methodparam">void</span>
149 )</div>
161 )</div>
162 <div class="methodsynopsis dc-description">
163 <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="spldoublylinkedlist.unserialize.html" class="methodname">SplDoublyLinkedList::unserialize</a></span>
164 ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$serialized</code></span>
OfertaActividad.php (https://gitlab.com/bluedrayco/Portafolio) PHP · 568 lines
Cache_File.php (https://gitlab.com/karlen/ayo_wp) PHP · 455 lines
1 <?php
2 namespace W3TC;
116 $expires_at = time() + $expire;
117 @fputs( $fp, pack( 'L', $expires_at ) );
118 @fputs( $fp, '<?php exit; ?>' );
119 @fputs( $fp, @serialize( $var ) );
136 list( $data, $has_old_data ) = $this->_get_with_old_raw( $key, $group );
137 if ( !empty( $data ) )
138 $data_unserialized = @unserialize( $data );
139 else
140 $data_unserialized = $data;
142 return array( $data_unserialized, $has_old_data );
143 }
translated-object.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 272 lines
1 <?php
3 /**
114 // create a new term if necessary
115 if ( empty( $term ) ) {
116 wp_insert_term( $group = uniqid( 'pll_' ), $this->tax_translations, array( 'description' => serialize( $translations ) ) );
117 }
118 else {
119 // take care not to overwrite extra data stored in description field, if any
120 $d = unserialize( $term->description );
121 $d = is_array( $d ) ? array_diff_key( $d, $old_translations ) : array(); // remove old translations
122 $d = array_merge( $d, $translations ); // add new one
123 wp_update_term( $group = (int) $term->term_id, $this->tax_translations, array( 'description' => serialize( $d ) ) );
124 }
prg.test.php (https://github.com/manubamba/cakephp-search-plugin-v1.1.git) PHP · 373 lines
1 <?php
2 /**
3 * Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
7 *
8 * @copyright Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10 */
202 * @return void
203 */
204 public function testSerializeParams() {
205 $this->Controller->presetVars = array(
206 array(
215 0 => 'test1', 1 => 'test2', 2 => 'test3'));
217 $result = $this->Controller->Prg->serializeParams($testData);
218 $this->assertEqual($result, array('options' => 'test1|test2|test3'));
GetCharactersCharacterIdPlanetsPlanetIdOkRoutes.php (https://gitlab.com/mglinski/php-esi-lib) PHP · 398 lines
1 <?php
2 /**
3 * GetCharactersCharacterIdPlanetsPlanetIdOkRoutes
4 *
5 * PHP version 5
6 *
7 * @category Class
389 {
390 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
391 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
392 }
394 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this));
395 }
396 }
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
HproseWriter.php (https://gitlab.com/fangfangchen/xianpipa) PHP · 301 lines
1 <?php
2 /**********************************************************\
3 | |
12 /**********************************************************\
13 * *
14 * HproseWriter.php *
15 * *
16 * hprose writer library for php5. *
21 \**********************************************************/
23 require_once('HproseCommon.php');
24 require_once('HproseTags.php');
25 require_once('HproseClassManager.php');
27 class HproseSimpleWriter {
RoutingSerializationTests.cs (https://bitbucket.org/tscheinpflug/osmsharp.git) C# · 287 lines
75 try
76 {
77 deserializedVersion = routingSerializer.Deserialize(stream);
78 }
79 catch (Exception)
117 // create serializer.
118 var routingSerializer = new V1RoutingSerializer();
120 // serialize/deserialize.
222 // try
223 // {
224 // routingSerializer.Serialize(stream, original);
225 // byteArray = stream.ToArray();
226 // }
237 // IBasicRouterDataSource<PreProcessedEdge> deserializedVersion =
238 // routingSerializer.Deserialize(new MemoryStream(byteArray));
239 // Assert.AreEqual(original.TagsIndex.Get(0), deserializedVersion.TagsIndex.Get(0));
Config.php (https://github.com/pimcore/pimcore.git) PHP · 586 lines
Array.hx (https://gitlab.com/ezeql/haxe) Haxe · 483 lines
mavlink_msg_encapsulated_data.h (https://gitlab.com/krucios/Astraeus_FW) C Header · 229 lines
151 * @brief Send a encapsulated_data message
152 * @param chan MAVLink channel to send the message
153 * @param struct The MAVLink struct to serialize
154 */
155 static inline void mavlink_msg_encapsulated_data_send_struct(mavlink_channel_t chan, const mavlink_encapsulated_data_t* encapsulated_data)
RouteTest.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 232 lines
1 <?php
3 /*
14 use Symfony\Component\Routing\Route;
16 class RouteTest extends \PHPUnit_Framework_TestCase
17 {
18 public function testConstructor()
220 }
222 public function testSerialize()
223 {
224 $route = new Route('/{foo}', array('foo' => 'default'), array('foo' => '\d+'));
226 $serialized = serialize($route);
227 $unserialized = unserialize($serialized);
229 $this->assertEquals($route, $unserialized);
PlatformJobQueue.php (https://github.com/Exercise/zf2.git) PHP · 318 lines
ezkeywordtype.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 291 lines
1 <?php
2 /**
3 * File containing the eZKeywordType class.
11 /*!
12 \class eZKeywordType ezkeywordtype.php
13 \ingroup eZDatatype
14 \brief A content datatype which handles keyword indexes
28 {
29 $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', 'Keywords', 'Datatype name' ),
30 array( 'serialize_supported' => true ) );
31 }
258 }
260 function serializeContentObjectAttribute( $package, $objectAttribute )
261 {
262 $node = $this->createContentObjectAttributeDOMNode( $objectAttribute );
AbstractSessionArrayStorage.php (https://bitbucket.org/saifshuvo/zf2.git) PHP · 484 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
173 * @return string
174 */
175 public function serialize()
176 {
177 return serialize($_SESSION);
180 /**
181 * Unserialize
182 *
183 * @param string $session
184 * @return mixed
185 */
186 public function unserialize($session)
187 {
188 return unserialize($session);
FirebaseiOSImpl.cs (https://gitlab.com/vectorci/Firebase-Unity) C# · 289 lines
Protocol.cc (https://github.com/ak2consulting/hypertable.git) C++ · 342 lines
AbstractJSONImplementation.java (https://bitbucket.org/corrspt/xalpi.git) Java · 486 lines
Constraint.php (https://github.com/pulzarraider/symfony.git) PHP · 300 lines
GetCharactersCharacterIdMailMailIdOk.php (https://gitlab.com/mglinski/php-esi-lib) PHP · 394 lines
1 <?php
2 /**
3 * GetCharactersCharacterIdMailMailIdOk
4 *
5 * PHP version 5
6 *
7 * @category Class
385 {
386 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
387 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
388 }
390 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this));
391 }
392 }
sfNamespacedParameterHolderTest.php (https://github.com/mrwabu/urlcatcher.git) PHP · 224 lines
1 <?php
3 /*
9 */
11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
13 $t = new lime_test(54);
211 $t->is($parameters, $ph->getAll(), '->add() adds a reference of an array of parameters');
213 // ->serialize() ->unserialize()
214 $t->diag('->serialize() ->unserialize()');
215 $t->ok($ph == unserialize(serialize($ph)), 'sfNamespacedParameterHolder implements the Serializable interface');
217 // Array path as a key
BBTA_ConstructeurOption.cs (https://bitbucket.org/kraig2/bbta.git) C# · 328 lines
31 private XmlTextReader lecteur = null;
32 private XmlTextWriter ecriveur = null;
33 private XmlSerializer serializer = null;
34 private bool chargementReussis;
35 #endregion
62 optionActive = new Option();
63 optionUsine = new Option();
64 serializer = new XmlSerializer(typeof(Option));
65 //On charge l'objet Option d'usine qui contient les paramètres d'usine du jeu.
66 OptionUsine();
221 {
222 lecteur = new XmlTextReader(FichierEntre);
223 option = (Option)serializer.Deserialize(lecteur);
224 chargementReussis = true;
225 }
content-archive.php (https://gitlab.com/oxidigitaluser/liguelista) PHP · 154 lines
102 <div style="margin-top:5px;">
103 <span style="font-weight: 300;">
104 <a href="http://<?php echo $javo_meta_query->get('website'); ?>" target="_blank" alt="<?php the_title(); ?>" title="<?php the_title(); ?>"><?php echo $javo_meta_query->get('website'); ?></a>
105 </span>
106 </div>
122 <div style="float: right;padding-left: 5px;">
123 <?php if ($javo_meta_query->get('phone1') != '' && $javo_meta_query->get('phone1') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone1'); ?></span></div><?php } ?>
124 <?php if ($javo_meta_query->get('phone2') != '' && $javo_meta_query->get('phone2') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone2'); ?></span></div><?php } ?>
125 <?php if ($javo_meta_query->get('phone3') != '' && $javo_meta_query->get('phone3') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone3'); ?></span></div><?php } ?>
126 </div>
146 <div style="float: right;width: 100%;" class="quebratelefone">
147 <?php if ($javo_meta_query->get('phone0800') != '' && $javo_meta_query->get('phone0800') != ', ') { ?><div style="margin-top:5px;"><span class="quebratelefone"><?php echo $javo_meta_query->get('phone0800'); ?></span></div><?php } ?>
148 </div>
149 </div>
GetCharactersCharacterIdSearchOk.php (https://gitlab.com/mglinski/php-esi-lib) PHP · 524 lines
1 <?php
2 /**
3 * GetCharactersCharacterIdSearchOk
4 *
5 * PHP version 5
6 *
7 * @category Class
515 {
516 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
517 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
518 }
520 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this));
521 }
522 }
BaseTest.php (https://github.com/maintainable/framework.git) PHP · 325 lines
114 $options = array('properties' => array('validity', 'is_good'));
116 $serializer = new Mad_Model_Serializer_Base($record, $options);
117 $propertyNames = $serializer->getSerializablePropertyNames();
263 'Comments' => array('except' => 'article_id')));
265 $serializer = new Mad_Model_Serializer_Base($record, $options);
266 $record = $serializer->getSerializableRecord();
286 $options = array('methods' => array('foo', 'intMethod', 'boolMethod'));
288 $serializer = new Mad_Model_Serializer_Base($record, $options);
289 $record = $serializer->getSerializableRecord();
310 $options = array('properties' => array('is_good', 'validity'));
312 $serializer = new Mad_Model_Serializer_Base($record, $options);
313 $record = $serializer->getSerializableRecord();
test-kirki.php (https://gitlab.com/aristath/mdl) PHP · 320 lines
229 $this->assertEquals( 'some-default-value', Kirki::get_option( 'my_config_theme_mods', 'my_setting_theme_mods' ) );
230 $this->assertEquals( 'some-default-value', Kirki::get_option( 'my_config_options', 'my_setting_options' ) );
231 $this->assertEquals( 'some-default-value', Kirki::get_option( 'my_config_options_serialized', 'my_option[my_setting_options_serialized]' ) );
233 Kirki::$config = null;
269 'opacity' => '.6',
270 ),
271 Kirki::get_option( 'my_config_options_serialized', 'my_option[my_settings_test_background_options_serialized]' )
272 );
314 'opacity' => '.6',
315 ),
316 Kirki::get_option( 'my_config_options_serialized', 'my_option[my_settings_test_background_options_serialized]' )
317 );
318 }
SetTest.php (https://gitlab.com/svillegas/magento2) PHP · 304 lines
1 <?php
2 /**
3 *
12 /**
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
14 */
15 class SetTest extends \PHPUnit_Framework_TestCase
16 {
17 /**
18 * @var \PHPUnit_Framework_MockObject_MockObject|Set
19 */
20 protected $model;
22 /**
23 * @var \PHPUnit_Framework_MockObject_MockObject
24 */
25 protected $eavConfigMock;
ezrangeoptiontype.php (https://github.com/vjeran/ezpublish.git) PHP · 276 lines
1 <?php
2 /**
3 * File containing the eZRangeOptionType class.
11 /*!
12 \class eZRangeOptionType ezrangeoptiontype.php
13 \ingroup eZDatatype
14 \brief The class eZRangeOptionType does
27 {
28 $this->eZDataType( self::DATA_TYPE_STRING, ezpI18n::tr( 'kernel/classes/datatypes', "Range option", 'Datatype name' ),
29 array( 'serialize_supported' => true ) );
30 }
225 }
227 function serializeContentClassAttribute( $classAttribute, $attributeNode, $attributeParametersNode )
228 {
229 $defaultName = $classAttribute->attribute( 'data_text1' );
Constraint.php (https://github.com/welaika/wordless.git) PHP · 315 lines
Renderlet.php (https://github.com/ngocanh/pimcore.git) PHP · 341 lines
PropelCSVParser.php (https://bitbucket.org/aagraz/propel.git) PHP · 314 lines
1 <?php
3 /**
11 /**
12 * CSV parser. Converts data between associative array and CSV formats.
13 * CSV parsing code borrowed from php-csv-utils by Luke Visinoni
14 * http://code.google.com/p/php-csv-utils/
77 foreach ($row as &$column) {
78 if (!is_scalar($column)) {
79 $column = $this->serialize($column);
80 }
81 switch ($this->quoting) {
154 /**
155 * Serializes a value to place it into a CSV output
156 *
157 * @param mixed $input
Diff.php (https://github.com/akelos/v1.git) PHP · 371 lines
174 function _check($from_lines, $to_lines)
175 {
176 if (serialize($from_lines) != serialize($this->getOriginal())) {
177 trigger_error("Reconstructed original doesn't match", E_USER_ERROR);
178 }
179 if (serialize($to_lines) != serialize($this->getFinal())) {
180 trigger_error("Reconstructed final doesn't match", E_USER_ERROR);
181 }
183 $rev = $this->reverse();
184 if (serialize($to_lines) != serialize($rev->getOriginal())) {
185 trigger_error("Reversed original doesn't match", E_USER_ERROR);
186 }
class.solrpingresponse.html (https://github.com/cue-taro/emacs-setting-files.git) HTML · 304 lines
10 <div class="next" style="text-align: right; float: right;"><a href="solrpingresponse.construct.html">SolrPingResponse::__construct</a></div>
11 <div class="up"><a href="book.solr.html">Solr</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.solrpingresponse" class="reference">
224 <dd>
226 <p class="para">The response in PHP serialized format.</p>
227 </dd>
301 <div class="next" style="text-align: right; float: right;"><a href="solrpingresponse.construct.html">SolrPingResponse::__construct</a></div>
302 <div class="up"><a href="book.solr.html">Solr</a></div>
303 <div class="home"><a href="index.html">PHP Manual</a></div>
304 </div></body></html>
BtcguildStatus.java (https://bitbucket.org/logiclrd/minerstatus.git) Java · 377 lines
5 import com.trumpetx.minerstatus.ViewMinerActivity;
6 import com.trumpetx.minerstatus.util.Configuration;
7 import com.trumpetx.minerstatus.util.Deserializer;
8 import com.trumpetx.minerstatus.util.GsonDeserializer;
185 public String getDirections()
186 {
187 String youCanGetYourAPIKey = "on your profile page at\nhttp://www.btcguild.com/my_api.php";
189 return getCommonDirections( "BTC Guild", youCanGetYourAPIKey );
198 @Override
199 public Deserializer<? extends Status> getDeserializer()
200 {
201 return new BtcguildStatusDeserializer();
209 public String[] getURLTemplates()
210 {
211 return new String[] { "https://www.btcguild.com/api.php?api_key=%MINER%" };
212 }
213 }
SerializerTraceWriter.java (https://github.com/srnsw/xena.git) Java · 341 lines
19 * $Id$
20 */
21 package org.apache.xml.serializer;
23 import java.io.IOException;
43 * @xsl.usage internal
44 */
45 final class SerializerTraceWriter extends Writer implements WriterChain
46 {
95 * @param tracer the tracer to inform that characters are being written
96 */
97 public SerializerTraceWriter(Writer out, SerializerTrace tracer)
98 {
99 m_writer = out;
em-notices.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 238 lines
1 <?php
2 /**
3 *
12 if( !empty($_COOKIE['em_notices']) ) {
13 $notices = base64_decode($_COOKIE['em_notices']);
14 if( is_serialized( $notices ) ){
15 $this->notices = unserialize($notices);
33 }
34 if(count($this->notices['errors']) > 0 || count($this->notices['alerts']) > 0 || count($this->notices['infos']) > 0 || count($this->notices['confirms']) > 0){
35 setcookie('em_notices', base64_encode(serialize($this->notices)), time() + 30, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true); //sets cookie for 30 seconds, which may be too much
36 }
37 return $redirect;
MessageBag.php (https://gitlab.com/Sigpot/AirSpot) PHP · 359 lines
test.php (https://github.com/jacomyma/GEXF-Atlas.git) PHP · 301 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
36 catch ( ezcBaseValueException $e )
37 {
38 $value = is_array( $value ) ? serialize( $value ) : $value;
39 $this->assertEquals( "The value '{$value}' that you were trying to assign to setting '{$property}' is invalid. Allowed values are: {$allowedValue}.", $e->getMessage() );
40 }
AssistantContext.php (https://github.com/jaanusnurmoja/fabrik.git) PHP · 288 lines
1 <?php
3 /**
21 use Twilio\Rest\Preview\Understand\Assistant\StyleSheetList;
22 use Twilio\Rest\Preview\Understand\Assistant\TaskList;
23 use Twilio\Serialize;
24 use Twilio\Values;
25 use Twilio\Version;
102 $data = Values::of(array(
103 'FriendlyName' => $options['friendlyName'],
104 'LogQueries' => Serialize::booleanToString($options['logQueries']),
105 'UniqueName' => $options['uniqueName'],
106 'CallbackUrl' => $options['callbackUrl'],
107 'CallbackEvents' => $options['callbackEvents'],
108 'FallbackActions' => Serialize::jsonObject($options['fallbackActions']),
109 'InitiationActions' => Serialize::jsonObject($options['initiationActions']),
User.php (https://github.com/hukumonline/quart80.git) PHP · 278 lines
198 /**
199 * Unserializes <tt>$serialized</tt> and assigns the specific
200 * values found to the members in this class.
201 *
202 * @param string $serialized The serialized representation of a former
203 * instance of this class.
204 */
205 public function unserialize($serialized)
206 {
207 $str = unserialize($serialized);
Definition.java (https://github.com/gsteri1/OG-Platform.git) Java · 309 lines
19 _name = name;
20 }
21 protected Definition (final org.fudgemsg.mapping.FudgeDeserializer deserializer, final org.fudgemsg.FudgeMsg fudgeMsg) {
22 org.fudgemsg.FudgeField fudgeField;
23 java.util.List<org.fudgemsg.FudgeField> fudgeFields;
126 return new Definition (this);
127 }
128 public org.fudgemsg.FudgeMsg toFudgeMsg (final org.fudgemsg.mapping.FudgeSerializer serializer) {
129 if (serializer == null) throw new NullPointerException ("serializer must not be null");
132 return msg;
133 }
134 public void toFudgeMsg (final org.fudgemsg.mapping.FudgeSerializer serializer, final org.fudgemsg.MutableFudgeMsg msg) {
135 if (_name != null) {
136 msg.add (NAME_KEY, null, _name);
149 if (_parameter != null) {
150 for (com.opengamma.language.definition.Parameter fudge1 : _parameter) {
151 final org.fudgemsg.MutableFudgeMsg fudge2 = org.fudgemsg.mapping.FudgeSerializer.addClassHeader (serializer.newMessage (), fudge1.getClass (), com.opengamma.language.definition.Parameter.class);
152 fudge1.toFudgeMsg (serializer, fudge2);
Messages.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 309 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Core
23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
294 {
295 return array(
296 'storage_types' => serialize($this->_usedStorageTypes)
297 );
298 }
Messages.php (https://github.com/rgranadino/magento-mirror.git) PHP · 309 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Core
23 * @copyright Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
294 {
295 return array(
296 'storage_types' => serialize($this->_usedStorageTypes)
297 );
298 }
QueueFake.php (https://gitlab.com/jjpa2018/dashboard) PHP · 414 lines
8 use Illuminate\Queue\QueueManager;
9 use Illuminate\Support\Traits\ReflectsClosures;
10 use PHPUnit\Framework\Assert as PHPUnit;
12 class QueueFake extends QueueManager implements Queue
38 }
40 PHPUnit::assertTrue(
41 $this->pushed($job, $callback)->count() > 0,
42 "The expected [{$job}] job was not pushed."
118 public function assertPushedWithoutChain($job, $callback = null)
119 {
120 PHPUnit::assertTrue(
121 $this->pushed($job, $callback)->isNotEmpty(),
122 "The expected [{$job}] job was not pushed."
ConfigSchema.php (https://github.com/nigeldaley/moodle.git) PHP · 164 lines
CartItemProcessorTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 229 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
6 namespace Magento\ConfigurableProduct\Test\Unit\Model\Quote\Item;
8 class CartItemProcessorTest extends \PHPUnit_Framework_TestCase
9 {
10 /**
15 /**
16 * @var \PHPUnit_Framework_MockObject_MockObject
17 */
18 protected $objectFactoryMock;
20 /**
21 * @var \PHPUnit_Framework_MockObject_MockObject
22 */
23 protected $optionFactoryMock;
mavlink_msg_mission_clear_all.h (https://gitlab.com/krucios/Astraeus_FW) C Header · 237 lines
157 * @brief Send a mission_clear_all message
158 * @param chan MAVLink channel to send the message
159 * @param struct The MAVLink struct to serialize
160 */
161 static inline void mavlink_msg_mission_clear_all_send_struct(mavlink_channel_t chan, const mavlink_mission_clear_all_t* mission_clear_all)
chart_base.php (https://github.com/sbourget/moodle.git) PHP · 306 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
75 /**
76 * Serialize the object.
77 *
78 * @return array
79 */
80 public function jsonSerialize() {
81 global $CFG;
82 return [
286 * Validate an axis.
287 *
288 * We validate this from PHP because not doing it here could result in errors being
289 * hard to trace down. For instance, if we were to add axis at keys without another
290 * axis preceding, we would effectively contain the axes in an associative array
Messages.php (https://github.com/pixel-cookers/magento_bootstrap.git) PHP · 309 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Core
23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
294 {
295 return array(
296 'storage_types' => serialize($this->_usedStorageTypes)
297 );
298 }
JTokenReader.cs (https://github.com/ayoung/Newtonsoft.Json.git) C# · 303 lines
newpost.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 191 lines
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /* @version $Id: v 0.1 ${date} - ${time} Exp $
3 *
40 else{
41 $return = $result->current();
42 $return['borders'] = unserialize($return['borders']);
44 return array_merge($return, $parent);
59 DB::insert('shipmethod_'.strtolower($this->method), array('borders') )
60 ->values(
61 array(serialize($borders) )
62 )
63 // ->where('id', '=', $id)
108 ->set(
109 array(
110 'borders' => serialize($borders),
111 )
112 )
UploadImageToGallery.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 334 lines
1 <?php
2 /**
3 * UploadImageToGallery
4 *
5 * PHP version 5
6 *
7 * @category Class
32 use \ArrayAccess;
33 use \SendinBlue\Client\ObjectSerializer;
35 /**
323 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
324 return json_encode(
325 ObjectSerializer::sanitizeForSerialization($this),
326 JSON_PRETTY_PRINT
327 );
RemainingCreditModelReseller.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines
1 <?php
2 /**
3 * RemainingCreditModelReseller
4 *
5 * PHP version 5
6 *
7 * @category Class
32 use \ArrayAccess;
33 use \SendinBlue\Client\ObjectSerializer;
35 /**
326 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
327 return json_encode(
328 ObjectSerializer::sanitizeForSerialization($this),
329 JSON_PRETTY_PRINT
330 );
GetTransacEmailContentEvents.php (https://gitlab.com/i-have-a-green/digitemis-v3) PHP · 337 lines
1 <?php
2 /**
3 * GetTransacEmailContentEvents
4 *
5 * PHP version 5
6 *
7 * @category Class
32 use \ArrayAccess;
33 use \SendinBlue\Client\ObjectSerializer;
35 /**
326 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
327 return json_encode(
328 ObjectSerializer::sanitizeForSerialization($this),
329 JSON_PRETTY_PRINT
330 );
VariantController.h (https://github.com/tstarling/hiphop-php.git) C Header · 153 lines
39 case KindOfBoolean: return HPHP::serialize::Type::BOOL;
40 case KindOfDouble: return HPHP::serialize::Type::DOUBLE;
41 case KindOfInt64: return HPHP::serialize::Type::INT64;
42 case KindOfArray: return HPHP::serialize::Type::MAP;
43 case KindOfStaticString:
44 case KindOfString: return HPHP::serialize::Type::STRING;
45 case KindOfObject: return HPHP::serialize::Type::OBJECT;
46 default:
47 throw HPHP::serialize::SerializeError(
48 "don't know how to serialize HPHP Variant");
79 return HphpArray::GetStaticEmptyArray();
80 }
81 static HPHP::serialize::Type mapKeyType(const Variant& k) {
82 return type(k);
83 }
IrrigationEventResource.java (https://github.com/agmip/agmip_ws.git) Java · 191 lines
Available.java (https://github.com/gsteri1/OG-Platform.git) Java · 254 lines
48 return new Entry (this);
49 }
50 public org.fudgemsg.FudgeMsg toFudgeMsg (final org.fudgemsg.mapping.FudgeSerializer serializer) {
51 if (serializer == null) throw new NullPointerException ("serializer must not be null");
120 public Available () {
121 }
122 protected Available (final org.fudgemsg.mapping.FudgeDeserializer deserializer, final org.fudgemsg.FudgeMsg fudgeMsg) {
123 super (deserializer, fudgeMsg);
174 return msg;
175 }
176 public void toFudgeMsg (final org.fudgemsg.mapping.FudgeSerializer serializer, final org.fudgemsg.MutableFudgeMsg msg) {
177 super.toFudgeMsg (serializer, msg);
190 if ("com.opengamma.language.function.Available".equals (className)) break;
191 try {
192 return (com.opengamma.language.function.Available)Class.forName (className).getDeclaredMethod ("fromFudgeMsg", org.fudgemsg.mapping.FudgeDeserializer.class, org.fudgemsg.FudgeMsg.class).invoke (null, deserializer, fudgeMsg);
193 }
194 catch (Throwable t) {
XmlPacketDefinitions.cs (https://github.com/enjoii/WCell.git) C# · 334 lines
session.php (https://github.com/zelu/core.git) PHP · 434 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
2 /**
3 * Base session class.
128 /**
129 * Session object is rendered to a serialized string. If encryption is
130 * enabled, the session will be encrypted. If not, the output string will
131 * be encoded using [base64_encode].
138 public function __toString()
139 {
140 // Serialize the data array
141 $data = serialize($this->_data);
312 }
314 // Unserialize the data
315 $data = unserialize($data);
PhoneNumberCountryRegionInfoType.class.php (https://gitlab.com/irbisadm/vox-php-sdk) PHP · 263 lines
model.php (https://github.com/DoFken/forkcms.git) PHP · 384 lines
EnumSyntax.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 263 lines
149 /**
150 * During object input, convert this deserialized enumeration instance to
151 * the proper enumeration value defined in the enumeration attribute class.
152 *
240 * the {@link #readResolve() <CODE>readResolve()</CODE>} method, the base
241 * class {@link #readResolve() <CODE>readResolve()</CODE>} method will throw
242 * an exception whenever an enumeration instance is deserialized from an
243 * object input stream.
244 * @return the value table
GetCharactersCharacterIdPlanetsPlanetIdOk.php (https://gitlab.com/mglinski/php-esi-lib) PHP · 308 lines
1 <?php
2 /**
3 * GetCharactersCharacterIdPlanetsPlanetIdOk
4 *
5 * PHP version 5
6 *
7 * @category Class
299 {
300 if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
301 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
302 }
304 return json_encode(\ESI\Client\ObjectSerializer::sanitizeForSerialization($this));
305 }
306 }
vimeo_source.php (https://github.com/gmimano/newd.git) PHP · 217 lines
1 <?php
2 /**
3 * Vimeo Datasource 0.1
12 * @author Jon (pointlessjon) Adams <jon@anti-gen.com>
13 * @copyright (c) n/a
14 * @link http://github.com/pointlessjon/CakePHP-Vimeo-Datasource/tree/master
15 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
209 function __vimeoApiRequest($data = null) {
210 if (!empty($data)) {
211 return unserialize($this->Http->get("http://vimeo.com/api/{$data}.php", null));
212 }
213 return false;
update.class.php (https://gitlab.com/webkod3r/tripolis) PHP · 234 lines
1 <?php
2 /**
3 * @author ThemePunch <info@themepunch.com>
12 private $plugin_url = 'http://codecanyon.net/item/slider-revolution-responsive-wordpress-plugin/2751380';
13 private $remote_url = 'http://updates.themepunch.tools/check_for_updates.php';
14 private $remote_url_info = 'http://updates.themepunch.tools/revslider/revslider.php';
15 private $plugin_slug = 'revslider';
16 private $plugin_path = 'revslider/revslider.php';
17 private $version;
18 private $plugins;
81 $data = $data ? $data : new stdClass;
83 $this->data = is_object($data) ? $data : maybe_unserialize($data);
85 }
FileStore.php (https://gitlab.com/techniconline/kmc) PHP · 247 lines
1 <?php namespace Illuminate\Cache;
3 use Exception;
74 }
76 $data = unserialize(substr($contents, 10));
78 // Next, we'll extract the number of minutes that are remaining for a cache
94 public function put($key, $value, $minutes)
95 {
96 $value = $this->expiration($minutes) . serialize($value);
98 $this->createCacheDirectory($path = $this->path($key));
SurveyDBClass.php (https://github.com/ChuguluGames/mediawiki-svn.git) PHP · 732 lines
main_impl.h (https://github.com/denis2342/bitcoin.git) C Header · 287 lines
2 * Copyright (c) 2020 Jonas Nick *
3 * Distributed under the MIT software license, see the accompanying *
4 * file COPYING or https://www.opensource.org/licenses/mit-license.php.*
5 ***********************************************************************/
41 }
43 int secp256k1_xonly_pubkey_serialize(const secp256k1_context* ctx, unsigned char *output32, const secp256k1_xonly_pubkey *pubkey) {
44 secp256k1_ge pk;
64 pk[0] = pk0; pk[1] = pk1;
65 for (i = 0; i < 2; i++) {
66 /* If the public key is NULL or invalid, xonly_pubkey_serialize will
67 * call the illegal_callback and return 0. In that case we will
68 * serialize the key as all zeros which is less than any valid public
ManagerTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 314 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
22 * Class ManagerTest
23 *
24 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
25 */
26 class ManagerTest extends \PHPUnit_Framework_TestCase
33 /**
34 * @var ComponentDefinition|\PHPUnit_Framework_MockObject_MockObject
35 */
36 protected $componentConfigProvider;
38 /**
39 * @var CacheInterface|\PHPUnit_Framework_MockObject_MockObject
40 */
41 protected $cacheConfig;
MenuTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 324 lines
mavlink_msg_terrain_data.h (https://gitlab.com/krucios/Astraeus_FW) C Header · 304 lines
Service.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 331 lines
✨ Summary
This JavaScript code defines a set of functions and classes for handling HTTP requests, specifically for creating RESTful services. It provides a framework for building web applications that can send and receive data in various formats (e.g., JSON, XML, JavaScript). The code also includes built-in transports for common HTTP methods like GET, POST, and JSONP.
This JavaScript code defines a set of functions and classes for handling HTTP requests, specifically for creating RESTful services. It provides a framework for building web applications that can send and receive data in various formats (e.g., JSON, XML, JavaScript). The code also includes built-in transports for common HTTP methods like GET, POST, and JSONP.
97 var envDef = dojox.rpc.envelopeRegistry.match(method.envelope || smd.envelope || "NONE");
98 if(envDef.namedParams){
99 // the serializer is expecting named params
100 if((args.length==1) && dojo.isObject(args[0])){
101 // looks like we have what we want
139 // looks like named params, we will convert
140 if(envDef.namedParams === false){
141 // the serializer is expecting ordered params, must be ordered
142 args = dojox.rpc.toOrdered(method, args);
143 }else{
151 }
153 var schema = method._schema || method.returns; // serialize with the right schema for the context;
154 var request = envDef.serialize.apply(this, [smd, method, args]);
183 deferred.addBoth(function(results){
184 return request._envDef.deserialize.call(this,results);
185 });
186 return deferred;
demo_polymorphic_A.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code is a template instantiation for polymorphic archives, specifically boost::archive::polymorphic_iarchive
and boost::archive::polymorphic_oarchive
. It declares two functions to serialize objects of type A
using these archives, which enables the serialization of polymorphic classes.
This C++ code is a template instantiation for polymorphic archives, specifically boost::archive::polymorphic_iarchive
and boost::archive::polymorphic_oarchive
. It declares two functions to serialize objects of type A
using these archives, which enables the serialization of polymorphic classes.
16 // used by this demo.
17 template
18 void A::serialize<boost::archive::polymorphic_iarchive>(
19 boost::archive::polymorphic_iarchive &,
20 const unsigned int
21 );
22 template
23 void A::serialize<boost::archive::polymorphic_oarchive>(
24 boost::archive::polymorphic_oarchive &,
25 const unsigned int
jfs_metapage.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 156 lines
✨ Summary
This C header file defines a data structure and functions for managing metadata pages in a journaling file system, specifically JFS (Journaling File System). It provides functions for initializing, exiting, and manipulating metapages, which store information about file system blocks and their contents. The code also handles synchronization and caching of page updates.
This C header file defines a data structure and functions for managing metadata pages in a journaling file system, specifically JFS (Journaling File System). It provides functions for initializing, exiting, and manipulating metapages, which store information about file system blocks and their contents. The code also handles synchronization and caching of page updates.
CHANGELOG (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 560 lines
Token.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 132 lines
✨ Summary
This Java code defines a Token
class that represents an input token stream in a parser. It includes fields for token kind, line and column numbers, string image, and references to next and special tokens. The class provides constructors, methods to access these fields, and a static method to create new token objects based on the token kind and image.
This Java code defines a Token
class that represents an input token stream in a parser. It includes fields for token kind, line and column numbers, string image, and references to next and special tokens. The class provides constructors, methods to access these fields, and a static method to create new token objects based on the token kind and image.
1 /* Generated By:JavaCC: Do not edit this line. Token.java Version 5.0 */
2 /* JavaCCOptions:TOKEN_EXTENDS=gatchan.phpparser.parser.PHPToken,KEEP_LINE_COL=null,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
3 package gatchan.phpparser.parser;
7 */
9 public class Token extends gatchan.phpparser.parser.PHPToken implements java.io.Serializable {
11 /**
12 * The version identifier for this Serializable class.
13 * Increment only if the <i>serialized</i> form of the
14 * class changes.
15 */
pool.h
(git://github.com/jwiegley/ledger.git)
C Header · 159 lines
✨ Summary
This C++ header file defines a class commodity_pool_t
for managing commodity pools, which are collections of commodities with associated prices and histories. The class provides methods for creating, finding, and exchanging commodities, as well as parsing price data from textual representations. It also includes serialization functionality for saving and loading the pool’s state.
This C++ header file defines a class commodity_pool_t
for managing commodity pools, which are collections of commodities with associated prices and histories. The class provides methods for creating, finding, and exchanging commodities, as well as parsing price data from textual representations. It also includes serialization functionality for saving and loading the pool’s state.
WebDOMTestSerializedScriptValueInterface.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 59 lines
35 class WebDOMString;
37 class WebDOMTestSerializedScriptValueInterface : public WebDOMObject {
38 public:
39 WebDOMTestSerializedScriptValueInterface();
40 explicit WebDOMTestSerializedScriptValueInterface(WebCore::TestSerializedScriptValueInterface*);
41 WebDOMTestSerializedScriptValueInterface(const WebDOMTestSerializedScriptValueInterface&);
42 WebDOMTestSerializedScriptValueInterface& operator=(const WebDOMTestSerializedScriptValueInterface&);
43 virtual ~WebDOMTestSerializedScriptValueInterface();
54 WebCore::TestSerializedScriptValueInterface* toWebCore(const WebDOMTestSerializedScriptValueInterface&);
55 WebDOMTestSerializedScriptValueInterface toWebKit(WebCore::TestSerializedScriptValueInterface*);
57 #endif
WorkerObjectProxy.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 60 lines
XMLHttpRequest.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1131 lines
app.config
(http://lunar-thu.googlecode.com/svn/)
ASP.NET · 60 lines
✨ Summary
This is an XML configuration file for an ASP.NET application, specifically a ClientSettingsSection
that stores user settings. It defines various settings for web crawling and search engines, such as timeout values, user agents, and encoding formats, which can be accessed and modified through the application’s UI or code.
This is an XML configuration file for an ASP.NET application, specifically a ClientSettingsSection
that stores user settings. It defines various settings for web crawling and search engines, such as timeout values, user agents, and encoding formats, which can be accessed and modified through the application’s UI or code.
8 <userSettings>
9 <SmartMe.Web.Properties.Settings>
10 <setting name="CrawlerTimeout" serializeAs="String">
11 <value>5000</value>
12 </setting>
13 <setting name="CrawlerUserAgent" serializeAs="String">
14 <value>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)</value>
15 </setting>
16 <setting name="CrawlerRetryTimes" serializeAs="String">
17 <value>5</value>
18 </setting>
ImageGetter.resx (http://lidgren-network-gen3.googlecode.com/svn/trunk/) Unknown · 120 lines
21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23 <value>[base64 mime encoded serialized .NET Framework object]</value>
24 </data>
25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
34 type or mimetype. Type corresponds to a .NET class that support
35 text/value conversion through the TypeConverter architecture.
36 Classes that don't support this are serialized and stored with the
37 mimetype set.
39 The mimetype is used for serialized objects, and tells the
40 ResXResourceReader how to depersist the object. This is currently not
41 extensible. For a given mimetype the value must be set accordingly: