1
0
mirror of https://github.com/php/doc-ja.git synced 2026-04-29 11:03:19 +02:00
Files
archived-doc-ja/reference/sqlite/functions/sqlite-udf-encode-binary.xml
T
Rui Hirokawa c40a460a29 translated sync tag into En-Revision.
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@173331 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-23 04:45:51 +00:00

67 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.3 $ -->
<!-- EN-Revision: 1.1 Maintainer: hirokawa Status: ready -->
<refentry id="function.sqlite-udf-encode-binary">
<refnamediv>
<refname>sqlite_udf_encode_binary</refname>
<refpurpose>
UDFから返す前にバイナリデータをエンコードする
</refpurpose>
</refnamediv>
<refsect1>
<title>説明</title>
<methodsynopsis>
<type>string</type><methodname>sqlite_udf_encode_binary</methodname>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
</methodsynopsis>
<para>
<function>sqlite_udf_encode_binary</function> は、
(元のlibsqlite APIはバイナリ対応ではないため、)
クエリから安全に値を返せるように<parameter>data</parameter> にバイ
ナリエンコーディングを適用します。
</para>
<para>
バイナリセーフでないと思われるデータ(例: ヌルバイトを末尾以外の場所
に含むデータや先頭文字に<literal>0x01</literal>を含むデータ)の場合、
UDFからの返り値をエンコードするために、この関数をコールする必要があ
ります。
</para>
<para>
PHPは、このエンコード/デコード処理を自動的に行いません。
これは、性能上著しい影響があるためです。
</para>
<note>
<para>
UDFから返す文字列をクオートするために
<function>sqlite_escape_string</function>を使用しないで下さい。
代わりにこの関数を使用して下さい。
</para>
</note>
<para>
<function>sqlite_udf_decode_binary</function>,
<function>sqlite_escape_string</function>,
<function>sqlite_create_function</function>,
<function>sqlite_create_aggregate</function>も参照して下さい。
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->