9 <meta property=
"og:title" content=
"ion\Writer">
10 <meta name=
"viewport" content=
"width=1200, initial-scale=0.5">
11 <base href=
"/ext-ion/v0.2/">
12 <meta http-equiv=
"Content-Location" content=
"/ext-ion/v0.2/ion/Writer">
13 <link rel=
"stylesheet" href=
"index.css">
15 <link rel=
"shortcut icon" href=
"/ext-ion/v0.2/favicon.ico">
23 <a href=
"https://github.com/awesomized/ext-ion/edit/master/ion.stub.php">Edit
</a>
28 <li>↰ <a href=
"./">Home
</a>
33 ↑ <a href=
"./ion">
39 ↻ <strong><a href=
"./ion/Writer">Writer
</a></strong>
45 ↳ <a href=
"./ion/Writer/Buffer">Buffer
</a>
49 <li>↳ <a href=
"./ion/Writer/Buffer/Writer">Writer
</a>
57 ↳ <a href=
"./ion/Writer/Options">Options
</a>
62 ↳ <a href=
"./ion/Writer/Stream">Stream
</a>
66 <li>↳ <a href=
"./ion/Writer/Stream/Writer">Writer
</a>
74 ↳ <a href=
"./ion/Writer/Writer">Writer
</a>
79 ↳ <a href=
"./ion/Writer/appendLob">Writer::appendLob
</a>
84 ↳ <a href=
"./ion/Writer/finish">Writer::finish
</a>
89 ↳ <a href=
"./ion/Writer/finishContainer">Writer::finishContainer
</a>
94 ↳ <a href=
"./ion/Writer/finishLob">Writer::finishLob
</a>
99 ↳ <a href=
"./ion/Writer/flush">Writer::flush
</a>
104 ↳ <a href=
"./ion/Writer/getDepth">Writer::getDepth
</a>
109 ↳ <a href=
"./ion/Writer/startContainer">Writer::startContainer
</a>
114 ↳ <a href=
"./ion/Writer/startLob">Writer::startLob
</a>
119 ↳ <a href=
"./ion/Writer/writeAnnotation">Writer::writeAnnotation
</a>
124 ↳ <a href=
"./ion/Writer/writeBLob">Writer::writeBLob
</a>
129 ↳ <a href=
"./ion/Writer/writeBool">Writer::writeBool
</a>
134 ↳ <a href=
"./ion/Writer/writeCLob">Writer::writeCLob
</a>
139 ↳ <a href=
"./ion/Writer/writeDecimal">Writer::writeDecimal
</a>
144 ↳ <a href=
"./ion/Writer/writeFieldName">Writer::writeFieldName
</a>
149 ↳ <a href=
"./ion/Writer/writeFloat">Writer::writeFloat
</a>
154 ↳ <a href=
"./ion/Writer/writeInt">Writer::writeInt
</a>
159 ↳ <a href=
"./ion/Writer/writeNull">Writer::writeNull
</a>
164 ↳ <a href=
"./ion/Writer/writeString">Writer::writeString
</a>
169 ↳ <a href=
"./ion/Writer/writeSymbol">Writer::writeSymbol
</a>
174 ↳ <a href=
"./ion/Writer/writeTimestamp">Writer::writeTimestamp
</a>
179 ↳ <a href=
"./ion/Writer/writeTypedNull">Writer::writeTypedNull
</a>
188 <li>↲ <a href=
"./ion/: Contributing">★ Contributing
</a></li>
190 <li>↲ <a href=
"./ion/: Security">★ Security
</a></li>
192 <li>↲ <a href=
"./ion/: Tutorial">★ Tutorial
</a></li>
194 <li>↲ <a href=
"./ion/Catalog">Catalog
</a></li>
196 <li>↲ <a href=
"./ion/Decimal">Decimal
</a></li>
198 <li>↲ <a href=
"./ion/Exception">Exception
</a></li>
200 <li>↲ <a href=
"./ion/LOB">LOB
</a></li>
202 <li>↲ <a href=
"./ion/Reader">Reader
</a></li>
204 <li>↲ <a href=
"./ion/Serializer">Serializer
</a></li>
206 <li>↲ <a href=
"./ion/Symbol">Symbol
</a></li>
208 <li>↲ <a href=
"./ion/Timestamp">Timestamp
</a></li>
210 <li>↲ <a href=
"./ion/Type">Type
</a></li>
212 <li>↲ <a href=
"./ion/Unserializer">Unserializer
</a></li>
214 <li>↲ <a href=
"./ion/serialize">serialize
</a></li>
216 <li>↲ <a href=
"./ion/unserialize">unserialize
</a></li>
224 <meta charset=
"utf-8"><h1>
225 <a class=
"permalink" href=
"ion/Writer#">#
</a><em>interface
</em> <a href=
"ion/Writer">ion\Writer
</a>
226 </h1><p>ION writer API.
</p><h2 id=
"Constants:">Constants:
<a class=
"permalink" href=
"ion/Writer#Constants:">#
</a>
227 </h2><p>None.
</p><h2 id=
"Properties:">Properties:
<a class=
"permalink" href=
"ion/Writer#Properties:">#
</a>
228 </h2><p>None.
</p><h2 id=
"Functions:">Functions:
<a class=
"permalink" href=
"ion/Writer#Functions:">#
</a>
229 </h2><ul class=
"sub-entries sub-functions">
232 <h3 id=
"Writer::appendLob">
233 <a href=
"ion/Writer/appendLob">Writer::appendLob
</a><a class=
"permalink" href=
"ion/Writer#Writer::appendLob">#
</a>
236 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/appendLob">ion\Writer::appendLob
</a>(
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$data
</span>)
</p>
240 <h3 id=
"Writer::finish">
241 <a href=
"ion/Writer/finish">Writer::finish
</a><a class=
"permalink" href=
"ion/Writer#Writer::finish">#
</a>
244 <p><code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <a href=
"ion/Writer/finish">ion\Writer::finish
</a>()
</p>
248 <h3 id=
"Writer::finishContainer">
249 <a href=
"ion/Writer/finishContainer">Writer::finishContainer
</a><a class=
"permalink" href=
"ion/Writer#Writer::finishContainer">#
</a>
252 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/finishContainer">ion\Writer::finishContainer
</a>()
</p>
256 <h3 id=
"Writer::finishLob">
257 <a href=
"ion/Writer/finishLob">Writer::finishLob
</a><a class=
"permalink" href=
"ion/Writer#Writer::finishLob">#
</a>
260 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/finishLob">ion\Writer::finishLob
</a>()
</p>
264 <h3 id=
"Writer::flush">
265 <a href=
"ion/Writer/flush">Writer::flush
</a><a class=
"permalink" href=
"ion/Writer#Writer::flush">#
</a>
268 <p><code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <a href=
"ion/Writer/flush">ion\Writer::flush
</a>()
</p>
272 <h3 id=
"Writer::getDepth">
273 <a href=
"ion/Writer/getDepth">Writer::getDepth
</a><a class=
"permalink" href=
"ion/Writer#Writer::getDepth">#
</a>
276 <p><code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <a href=
"ion/Writer/getDepth">ion\Writer::getDepth
</a>()
</p>
280 <h3 id=
"Writer::startContainer">
281 <a href=
"ion/Writer/startContainer">Writer::startContainer
</a><a class=
"permalink" href=
"ion/Writer#Writer::startContainer">#
</a>
284 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/startContainer">ion\Writer::startContainer
</a>(
<a href=
"ion/Type">ion\Type
</a> <span class=
"var">$type
</span>)
</p>
288 <h3 id=
"Writer::startLob">
289 <a href=
"ion/Writer/startLob">Writer::startLob
</a><a class=
"permalink" href=
"ion/Writer#Writer::startLob">#
</a>
292 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/startLob">ion\Writer::startLob
</a>(
<a href=
"ion/Type">ion\Type
</a> <span class=
"var">$type
</span>)
</p>
296 <h3 id=
"Writer::writeAnnotation">
297 <a href=
"ion/Writer/writeAnnotation">Writer::writeAnnotation
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeAnnotation">#
</a>
300 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeAnnotation">ion\Writer::writeAnnotation
</a>([
<a href=
"ion/Symbol">ion\Symbol
</a>|
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> ?
>...
<span class=
"var">$annotation
</span>])
</p>
304 <h3 id=
"Writer::writeBLob">
305 <a href=
"ion/Writer/writeBLob">Writer::writeBLob
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeBLob">#
</a>
308 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeBLob">ion\Writer::writeBLob
</a>(
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$value
</span>)
</p>
312 <h3 id=
"Writer::writeBool">
313 <a href=
"ion/Writer/writeBool">Writer::writeBool
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeBool">#
</a>
316 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeBool">ion\Writer::writeBool
</a>(
<code><a href=
"https://php.net/manual/en/language.types.boolean">bool
</a></code> <span class=
"var">$value
</span>)
</p>
320 <h3 id=
"Writer::writeCLob">
321 <a href=
"ion/Writer/writeCLob">Writer::writeCLob
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeCLob">#
</a>
324 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeCLob">ion\Writer::writeCLob
</a>(
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$value
</span>)
</p>
328 <h3 id=
"Writer::writeDecimal">
329 <a href=
"ion/Writer/writeDecimal">Writer::writeDecimal
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeDecimal">#
</a>
332 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeDecimal">ion\Writer::writeDecimal
</a>(
<a href=
"ion/Decimal">ion\Decimal
</a>|
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$value
</span>)
</p>
336 <h3 id=
"Writer::writeFieldName">
337 <a href=
"ion/Writer/writeFieldName">Writer::writeFieldName
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeFieldName">#
</a>
340 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeFieldName">ion\Writer::writeFieldName
</a>(
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$name
</span>)
</p>
344 <h3 id=
"Writer::writeFloat">
345 <a href=
"ion/Writer/writeFloat">Writer::writeFloat
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeFloat">#
</a>
348 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeFloat">ion\Writer::writeFloat
</a>(
<code><a href=
"https://php.net/manual/en/language.types.float">float
</a></code> <span class=
"var">$value
</span>)
</p>
352 <h3 id=
"Writer::writeInt">
353 <a href=
"ion/Writer/writeInt">Writer::writeInt
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeInt">#
</a>
356 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeInt">ion\Writer::writeInt
</a>(
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code>|
<code><a href=
"https://php.net/manual/en/language.types.integer">int
</a></code> <span class=
"var">$value
</span>)
</p>
360 <h3 id=
"Writer::writeNull">
361 <a href=
"ion/Writer/writeNull">Writer::writeNull
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeNull">#
</a>
364 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeNull">ion\Writer::writeNull
</a>()
</p>
368 <h3 id=
"Writer::writeString">
369 <a href=
"ion/Writer/writeString">Writer::writeString
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeString">#
</a>
372 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeString">ion\Writer::writeString
</a>(
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$value
</span>)
</p>
376 <h3 id=
"Writer::writeSymbol">
377 <a href=
"ion/Writer/writeSymbol">Writer::writeSymbol
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeSymbol">#
</a>
380 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeSymbol">ion\Writer::writeSymbol
</a>(
<a href=
"ion/Symbol">ion\Symbol
</a>|
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$value
</span>)
</p>
384 <h3 id=
"Writer::writeTimestamp">
385 <a href=
"ion/Writer/writeTimestamp">Writer::writeTimestamp
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeTimestamp">#
</a>
388 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeTimestamp">ion\Writer::writeTimestamp
</a>(
<a href=
"ion/Timestamp">ion\Timestamp
</a>|
<code><a href=
"https://php.net/manual/en/language.types.string">string
</a></code> <span class=
"var">$value
</span>)
</p>
392 <h3 id=
"Writer::writeTypedNull">
393 <a href=
"ion/Writer/writeTypedNull">Writer::writeTypedNull
</a><a class=
"permalink" href=
"ion/Writer#Writer::writeTypedNull">#
</a>
396 <p><code><a href=
"https://php.net/manual/en/language.types.declarations#language.types.declarations.void">void
</a></code> <a href=
"ion/Writer/writeTypedNull">ion\Writer::writeTypedNull
</a>(
<a href=
"ion/Type">ion\Type
</a> <span class=
"var">$type
</span>)
</p>
399 </ul><h2 id=
"Namespaces.Interfaces.and.Classes:">Namespaces, Interfaces and Classes:
<a class=
"permalink" href=
"ion/Writer#Namespaces.Interfaces.and.Classes:">#
</a>
400 </h2><ul class=
"sub-entries sub-ns-classes">
404 <a href=
"ion/Writer/Buffer">Buffer
</a><a class=
"permalink" href=
"ion/Writer#Buffer">#
</a>
406 <p>ION buffer writer API.
</p>
408 <p><em>interface
</em> <a href=
"ion/Writer/Buffer">ion\Writer\Buffer
</a> <em>implements
</em> <a href=
"ion/Writer">ion\Writer
</a></p>
413 <a href=
"ion/Writer/Options">Options
</a><a class=
"permalink" href=
"ion/Writer#Options">#
</a>
415 <p>ION writer options.
</p>
417 <p><em>class
</em> <a href=
"ion/Writer/Options">ion\Writer\Options
</a></p>
422 <a href=
"ion/Writer/Stream">Stream
</a><a class=
"permalink" href=
"ion/Writer#Stream">#
</a>
424 <p>ION stream writer API.
</p>
426 <p><em>interface
</em> <a href=
"ion/Writer/Stream">ion\Writer\Stream
</a> <em>implements
</em> <a href=
"ion/Writer">ion\Writer
</a></p>
431 <a href=
"ion/Writer/Writer">Writer
</a><a class=
"permalink" href=
"ion/Writer#Writer">#
</a>
433 <p>Base implementation of common functionality of ION writers.
</p>
435 <p><em>abstract
</em> <em>class
</em> <a href=
"ion/Writer/Writer">ion\Writer\Writer
</a> <em>implements
</em> <a href=
"ion/Writer">ion\Writer
</a></p>
439 <div class=
"comments">
440 <style>.giscus-frame {min-height:
16em;}
</style>
442 function giscus_load(button) {
443 let script = document.createElement(
"script");
444 script.setAttribute(
"data-repo", 'awesomized/ext-ion');
445 script.setAttribute(
"data-category", 'Comments on Docs');
446 script.setAttribute(
"data-repo-id", 'R_kgDOGfXEXw');
447 script.setAttribute(
"data-category-id", 'DIC_kwDOGfXEX84CBHuf');
448 script.setAttribute(
"data-mapping", 'og:title');
449 script.setAttribute(
"data-input-position", 'bottom');
450 script.setAttribute(
"data-reactions-enabled", false);
451 script.setAttribute(
"data-theme", 'light');
452 script.setAttribute(
"data-lang", 'en');
454 script.src =
"//giscus.app/client.js";
455 button.parentNode.replaceChild(script, button);
458 <button class=
"activator" onclick=
"giscus_load(this)">Show Comments from Github Discussions
</button>
465 <li><a href=
"https://github.com/m6w6/mdref">mdref-v3.0
467 <li><a href=
"LICENSE">© 2013-
2022 All rights reserved.
</a></li>
474 <script src=
"index.js" defer
></script>