当前位置: > 投稿>正文

serialize是什么意思,serialize中文翻译,serialize发音、用法及例句

2026-08-09 投稿

serialize是什么意思,serialize中文翻译,serialize发音、用法及例句

•serialize

serialize发音

英:['sɪərɪəlaɪz]  美:[ˈsɪrɪəˌlaɪz]

英:  美:

serialize中文意思翻译

vt. 连载, 串行化

=serialise(英)

serialize词形变化

动词过去分词: serialized | 动词现在分词: serializing | 名词: serialization | 动词第三人称单数: serializes | 动词过去式: serialized |

serialize常见例句

1 、Convert date to serial number.───将日期转换为序列数。

2 、The XmlSerializer class gives you complete and flexible control when you serialize an object as XML.───XmlSerializer类在您将对象序列化为XML时为您提供完整而灵活的控制。

3 、USB employs NRZI data encoding to transmit USB serial data.───USB串行数据采用了NRZI编码,在USB数据线上传输。

4 、The MAX187 is a serial 12 bit A/D converter.───MAX187是一个具有串行接口的12位A/D转换器。

5 、Convert time to serial number.───将时间转换为序列数。

6 、Realization of Serial Communication Function.───串行通信功能的实现。

7 、Installation is possible via frame buffer or the serial console.───可以frame buffer或过串列主控台来进行安装。

8 、Converts a date represented by text to a serial number.───将表示为文本的日期转换为序列数。

9 、Double-click Universal Serial Bus controllers.───双击“通用串行总线控制器”。

10 、To change from serial - by - bit to parallel - by - byte.───从按位串行的方式改变为按字节并行。

11 、Power consumption (serial): 65 mA (Max.───功率消耗(串行):65毫安(最大值)

12 、A method of combining functions in a serial manner.───一种把若干函数以串行方式组合起来的方法。

13 、Serial or Parallel Remote Control.───串行或并行**操作。

14 、One of the earliest serial killers on record is Jack the Ripper.───“开膛手”杰克是记录在案的一个早期系列杀手。

15 、Military ordinance is serialized and the serial numbers have been filed down.─── 军事条例规定要编号 但这上面的编号被锉光了

16 、Internal firmware upgradeable through the serial port or network.───内部固件升级通过串口或网络。

17 、The procedure of converting serial data into parallel data.───将串行数据转换为并行数据的过程或方法。

18 、Downloaded serial numbers may not be transferred.───下载的序列号不能传输。

19 、An exciting new serial story will begin in our next week's issue.───一个刺激而新颖的连载故事将于下周开始在本刊登出。

20 、Serial music may be written in various idioms.───序列音乐可以根据不同的风格创作而成。

21 、Difficulties come about at serial.───困难相继出现.

22 、Can carry serial communication interface.───可带有串行通讯接口。

23 、Serial Code Last 8 Digits of VIN No.───序列号 车辆标识号的后八位

24 、During the practice process, a serial of risks are in existence.───在这一操作过程中,存在着一系列的法律风险。

25 、Can you account for the serial failures in our experiment ?───你能解释我们实验屡屡失败的原因吗?

26 、Serial port The connection for serial interface.───串联**口连接串联接驳器的**口。

27 、The unpaid portion of a serial bond at maturity.───到期的序列债券或分批偿还债券的未付部分。

28 、Can serialize most objects, but the result is not loosely coupled.───可以序列化大多数对象,但结果不是松耦合的。

29 、The born again could buy the serial rights!───复仇之神重生了!

30 、How can you account for the serial accidents.───对于这一连串的事故你怎么解释呢?

31 、A new serial is starting on television tonight.───一部新的连续剧今晚开始在电视台播出。

32 、You can interact with fields easily by a single form element, serialize form and fields.───几乎每个项目我都需要创建网页风格和验证表单元素。

33 、The sale will only go ahead if the serial numbers match.───只有当序号都相符合时,销售才能继续进行。

34 、Parity used for serial transmission.───串行传输使用的校验。

35 、One serial killer's car is found in the junkyard of another serial killer.─── 一个连环杀手的车 出现在另一个连环杀手的废车场里

36 、Prints data to the serial port.───从串行端口输出数据。

37 、She was one of a rare breed - a female serial killer.───她属于另类 -- 一个连环女杀手。

38 、Be sure to put down its make, brand and serial number.───务必写清楚它的产地、品牌和编号。

39 、External power supply needed for Serial Expanders.───串行扩展器需要外部电源供应。

40 、It is the responsibility of the application to serialize access to the port correctly.───如何正确而有序的(序列化)访问那端口因该是应用程序的值责。

41 、A serial counter is also called a ripple counter.───串行计数器亦叫脉冲型计数器。

42 、He started a magazine serial about a scientific detective.───他开始着杂志上一篇科学**的连载**。

43 、You’ll learn about different ways to serialize Ruby objects to JSON.───你将学到如何将 Ruby 物件转换成 JSON 的格式。

44 、He's doing that because he's a serial killer.─── 他这么做是因为他是个连环杀手

45 、RS232 serial communication source code, can receive various data.───RS232串口通信源代码,可以接收各种数据。

46 、Serialize() returns a string containing a byte-stream representation of any value that can be stored in PHP.───serialize()返回一个字符串,包含着可以储存于PHP的任何值的字节流表示。

47 、Serialize() returns a string containing a byte-stream representation of value that can be stored anywhere.───serialize()返回字符串,此字符串包含了表示value的字节流,可以存储于任何地方。

48 、Be sure to put down its make,brand and serial number.───务必写清它的产地、牌名和编号。

49 、Was there any apprehension about playing a serial killer?───你对扮演一个连环杀手有什么担忧吗?

50 、Writes data to the serial port output buffer.───将数据写入串行端口输出缓冲区。

51 、No, I'm not turning into a serial hacker.─── 不 我并不是当黑客上了瘾

52 、Encryption is also useful if it is necessary to serialize the sensitive data.───如果必须序列化敏感数据,加密也很有用。

53 、You can see part two of the serial at the same time next week.───你可在下周同样时间看到该连续剧的第二集。

54 、He portrayed a serial killer in a Broadway show.───他曾在一个百老汇演出中扮演一位连环杀手。

55 、The GCM communicates with the PCCI control over a serial data link.───GCM与PCC通过串行数据连接。

56 、But we haven't been invited, and it isn't serial.─── 但我们并没收到邀请 这也不是连环凶杀案

57 、Later, we suspected that the culprit could be all those operations needed to serialize each number.───后来,我们怀疑原因可能是序列化每个数字所需的所有那些操作。

58 、No serial device was successfully initialized. The serial driver will unload.───串行设备初始化不成功。串行驱动程序将卸载。

59 、Well, we can't rule out a serial killer murdering serial killers.─── 不能排除是连环杀手 杀的连环杀手

60 、Different JDK levels can serialize and deserialize resources slightly differently, which can cause run-time problems.───不同的JDK级别会用稍微不同的方法对资源进行序列化和反序列化,这样会导致出现运行时问题。

61 、Command-line error: Invalid port for serial port mapping.───命令行错误:串行端口映射的端口无效。

62 、If you are using a serial console, send a break to the machine.───如果您使用的是串口控制台,发送break到机器。

63 、Be sure to put down it make, brand and serial number.───务必写清它的产地、品牌和编号。

64 、A time measurement for a given computer word to pass a given point as in serial storage delay-lines. All of the bits of a word must pass through the input control gate; the beat is then the sum of all the bits times.───在串行存储延迟线中,计算机字通过某指定点的一种时间度量。该字的所有位必须通过输入控制门,拍则是所有位时间之和。

65 、This is the serial number for the uzi.─── 这是那把乌兹冲锋**的序列号

66 、This zip describes TWI communication with a 2 wire serial EEPROM.───(译):这邮编介绍契维语沟通, 2线串行EEPROM 。

67 、However, SOAP allows for a richer use of XML to encode and serialize complex data structures such as classes.───但是,SOAP允许更丰富地使用XML,以对复杂数据结构(例如类)进行编码和序列化。

68 、Parity used for characters in serial mode.───串行模式中字符的极性。

69 、It means "International Standard Serial Number".───它的意思是“国际标准期刊刊号”。

70 、The serial link communicates with the TRE modules for testing.───串行链路沟通与tre模块进行测试。

71 、There are no Serial Ports which can be setup on this system.───在这个系统上没有可以安装的串行口。

72 、Under the terms DOS operating system Multiport Serial Card.───MOXA卡的操作.用语DOS系统下操作多串口卡。

73 、Do you want to serialize all AE plugins?───你想要连载所有的 AE **件吗?

74 、Its serial, kaleidoscopic exposures force us to follow its lead.───它那系列的、多变的画面引着我们跟着它走。

75 、AVR MCU through serial application of GPS to read all the data.───AVR系列单片机通过,串口应用读取GPS全部数据。

76 、To convert serial or timedependent parallel data into static form.───将串行或与时间有关的并行数据转换成静态形式的过程。

77 、Goliath as a serial crier does not work on a number of levels.───一个哭啼不迭的巨人是不能在很多级别的竞争中胜出的。

78 、There's a serial killer on the loose.─── 有一个连环杀手在外面逍遥法外

79 、Don't you want to see part two of the serial @The Big Family@?───你不想看连续剧“大家庭”第二集了吗?

80 、Values themselves may serialize as either member variables or local variables.───值本身可以序列化为成员变量或局部变量。

81 、PPP is a protocol for data transmission using a serial device.───PPP是使用串行设备进行数据传输的协议。

82 、It communicates with the main board by a serial line.───它和主板间是通过传形线连接。

83 、The girl frightened trembles, said that got rid the serial number.───女孩吓得哆哆嗦嗦,说出了手机号。

84 、They can take serial communication interface.───可带串行通讯接口。

85 、I2C bus is a two-wire low-speed serial bus developed by Phillips.───I2C 总线在 嵌入式系统 中可用于音频、视频以及多种 传感器等设备信号的传输。

86 、He's a serial killer studying serial killers.─── 他是个正在研究连环杀手的连环杀手

87 、Because it was baked by a serial killer.─── 因为这是一个连环杀手烤的

88 、Projection and denial are hallmarks of the serial bully.───和。否认。是连环欺负人的标记。

89 、Perhaps the name of that serial was Huo Yuan jian.───可能是《霍元甲》吧。

90 、Serial port: The connection for serial interface.───串联**口:连接串联接驳器的**口。

如何将Hashtable变量的数据序列化成字符串

你把Hashtable的对象通过序列化处理就可以了。

不过要求放置在Hashtable对象中的每个元素对象必须是可以序列化的,否则会失败。

下面的代码你可以直接使用:

// 类 名 称:SerializationHelper(类数据序列化处理类)

// 功能描述:本类以静态函数的形式实现序列化和反序列化功能

//

// 内 容:增加函数MaskStrToBytes和UnmaskBytesToStr,同时对Serialize后/Deserialize前的数据进行Mask和Unmask处理

//

using System;

using System.IO;

using System.Runtime.Serialization.Formatters.Binary;

using System.Windows.Forms;

using System.Text;

namespace Common.Serialize

{

///

/// SerializationHelper 的摘要说明。

///

public class SerializationHelper

{

//

//函数:Serialize

//类型:byte[]

//参数:data,object类型,要序列化处理的数据类型

//访问:public、static

//功能:对指定对象的数据进行序列化处理,处理完成后的数据存储到指定的文件中。

//其他:

//

//作者:Daview

//日期:2004年08月16日

//

public static byte[] Serialize(object data)

{

BinaryFormatter formatter=new BinaryFormatter();

MemoryStream streamMemory=new MemoryStream();

formatter.Serialize(streamMemory,data);

byte[] binaryData=streamMemory.GetBuffer();

streamMemory.Close();

return binaryData;

}

//

//函数:Deserialize

//类型:object

//参数:binaryData,byte[]类型,要反序列化的数据字节数组

//访问:public、static

//功能:对二进制文件进行反序列化处理,返回反序列化后的数据对象

//其他:

//

//作者:Daview

//日期:2004年08月16日

//

public static object Deserialize(byte[] binaryData)

{

BinaryFormatter formatter=new BinaryFormatter();

MemoryStream streamMemory=new MemoryStream(binaryData);

object data=formatter.Deserialize(streamMemory);

streamMemory.Close();

return data;

}

//

//函数:Serialize

//类型:void

//参数:data,object类型,要序列化处理的数据类型

// filePath,string类型,数据序列化后保存的文件名

//访问:public、static

//功能:对指定对象的数据进行序列化处理,处理完成后的数据存储到指定的文件中。

//其他:

//

//作者:Daview

//日期:2004年06月04日

//

//修改:Daview

//日期:2004年08月16日

//内容:把序列化过程独立出去

//

public static void Serialize(object data, string filePath)

{

string cipherData;

string binaryData;

try

{

//打开文件

System.IO.FileStream fs=new FileStream(filePath,FileMode.Create,FileAccess.Write);

//StreamWriter fs=new StreamWriter(filePath,false);

try

{

//加密数据

binaryData=Convert.ToBase64String(Serialize(data));

cipherData=binaryData;

//cipherData=DataProtection.DataProtection.Encrypt(binaryData,DataProtection.DataProtection.Store.Machine);

//保存数据

byte[] bitTmp=MaskStrToBytes(cipherData);

fs.Write(bitTmp,0,bitTmp.Length);

}

catch(Exception e)

{

ErrInfo.NewErrInfo(e);

}

finally

{

//关闭文件

fs.Flush();

fs.Close();

}

}

catch(Exception e)

{

ErrInfo.NewErrInfo(e);

}

}

//

//函数:Deserialize

//类型:object

//参数:filePath,string类型,要反序列化的数据文件名

//访问:public、static

//功能:对二进制文件进行反序列化处理,返回反序列化后的数据对象

//其他:

//

//作者:Daview

//日期:2004年06月04日

//

//修改:Daview

//日期:2004年08月16日

//内容:把反序列化过程独立出去

//

public static object Deserialize(string filePath)

{

object data=new object();

try

{

//打开文件

FileStream fs=new FileStream(filePath,FileMode.Open,FileAccess.Read);

//StreamReader sr=new StreamReader(filePath);

try

{

//读取二进制文件并转化为字符串

byte[] bitTmp=new byte[fs.Length];

fs.Read(bitTmp,0,bitTmp.Length);

string strBase64Data=UnmaskBytesToStr(bitTmp);

data=Deserialize(Convert.FromBase64String(strBase64Data));

}

catch(Exception e)

{

//数据反序列化失败

ErrInfo.NewErrInfo(e);

data=null;

}

finally

{

//关闭reader

fs.Close();

//sr.Close();

}

}

catch(Exception e)

{

//文件不存在

ErrInfo.NewErrInfo(e);

data=null;

}

return data;

}

//

//函数:MaskStrToBytes

//类型:byte[]

//参数:str,string类型,要进行Mask处理的字符串数据

//访问:private、static

//功能:对字符串转化为字节数组并对所有字节进行Mask处理

//其他:

//

//作者:Daview

//日期:2004年06月05日

//

private static byte[] MaskStrToBytes(string str)

{

byte[] bitTmp=Encoding.ASCII.GetBytes(str);

int iLen=bitTmp.Length;

for(int i=0;i

bitTmp[i]^=(byte)0x70;

return bitTmp;

}

//

//函数:UnmaskBytesToStr

//类型:string

//参数:bits,byte[]类型,要进行Unmask处理的字节数组数据

//访问:private、static

//功能:对字节数组进行Unmask处理后再转化为字符串返回

//其他:

//

//作者:Daview

//日期:2004年06月05日

//

private static string UnmaskBytesToStr(byte[] bits)

{

int iLen=bits.Length;

for(int i=0;i

bits[i]^=(byte)0x70;

return Encoding.ASCII.GetString(bits);

}

}

}

serialize()序列化的时候为什么会出现空格

私有变量前会出现空格,它不会显示出来,复制粘贴去转码就会出问题,自己手动加空格好像也会被过滤掉,要转码可直接在代码中调用base64_encode()

本站其他内容推荐

版权声明: 本站仅提供信息存储空间服务,旨在传递更多信息,不拥有所有权,不承担相关法律责任,不代表本网赞同其观点和对其真实性负责。如因作品内容、版权和其它问题需要同本网联系的,请发送邮件至 举报,一经查实,本站将立刻删除。