码迷,mamicode.com
首页 > Windows程序 > 详细

Delphi 自带的 Base64 编解码函数

时间:2016-08-20 00:10:39      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:

今天帮别人解决一个关于 Base64 编解码的问题,竟然发现 Delphi 自带了 Base64 编解码的单元,叫 EncdDecd,这名字很拗口而且不直观,估计这是一直很少人关注和知道的原因。

这个单元提供两套四个公开函数:

对流的编解码:
procedure EncodeStream(Input, Output: TStream); // 编码
procedure DecodeStream(Input, Output: TStream); // 解码

// 对字符串的编解码:
function EncodeString(const Input: string): string; // 编码
function DecodeString(const Input: string): string; // 解码

这几个函数在帮助中没有。应该不算是标准库中的函数。


这里写下来备忘。 delphi 还有多少不为一般人所知的方便呢?

http://blog.csdn.net/cmdasm/article/details/9876449

Delphi 自带的 Base64 编解码函数

标签:

原文地址:http://www.cnblogs.com/findumars/p/5789404.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!