serialize是什么意思,serialize中文翻譯,serialize發(fā)音、用法及例句
?serialize
serialize發(fā)音
英:['s??r??la?z] 美:[?s?r???la?z]
英: 美:
serialize中文意思翻譯
vt. 連載, 串行化
=serialise(英)
serialize詞形變化
動(dòng)詞過(guò)去分詞: serialized | 動(dòng)詞現在分詞: serializing | 名詞: serialization | 動(dòng)詞第三人稱(chēng)單數: serializes | 動(dòng)詞過(guò)去式: serialized |
serialize常見(jiàn)例句
1 、Convert date to serial number.───將日期轉換為序列數。
2 、The XmlSerializer class gives you complete and flexible control when you serialize an object as XML.───XmlSerializer類(lèi)在您將對象序列化為XML時(shí)為您提供完整而靈活的控制。
3 、USB employs NRZI data encoding to transmit USB serial data.───USB串行數據采用了NRZI編碼,在USB數據線(xiàn)上傳輸。
4 、The MAX187 is a serial 12 bit A/D converter.───MAX187是一個(gè)具有串行接口的12位A/D轉換器。
5 、Convert time to serial number.───將時(shí)間轉換為序列數。
6 、Realization of Serial Communication Function.───串行通信功能的實(shí)現。
7 、Installation is possible via frame buffer or the serial console.───可以frame buffer或過(guò)串列主控臺來(lái)進(jìn)行安裝。
8 、Converts a date represented by text to a serial number.───將表示為文本的日期轉換為序列數。
9 、Double-click Universal Serial Bus controllers.───雙擊“通用串行總線(xiàn)控制器”。
10 、To change from serial - by - bit to parallel - by - byte.───從按位串行的方式改變?yōu)榘醋止澆⑿小?/p>
11 、Power consumption (serial): 65 mA (Max.───功率消耗(串行):65毫安(最大值)
12 、A method of combining functions in a serial manner.───一種把若干函數以串行方式組合起來(lái)的方法。
13 、Serial or Parallel Remote Control.───串行或并行**操作。
14 、One of the earliest serial killers on record is Jack the Ripper.───“開(kāi)膛手”杰克是記錄在案的一個(gè)早期系列殺手。
15 、Military ordinance is serialized and the serial numbers have been filed down.─── 軍事條例規定要編號 但這上面的編號被銼光了
16 、Internal firmware upgradeable through the serial port or network.───內部固件升級通過(guò)串口或網(wǎng)絡(luò )。
17 、The procedure of converting serial data into parallel data.───將串行數據轉換為并行數據的過(guò)程或方法。
18 、Downloaded serial numbers may not be transferred.───下載的序列號不能傳輸。
19 、An exciting new serial story will begin in our next week's issue.───一個(gè)刺激而新穎的連載故事將于下周開(kāi)始在本刊登出。
20 、Serial music may be written in various idioms.───序列音樂(lè )可以根據不同的風(fēng)格創(chuàng )作而成。
21 、Difficulties come about at serial.───困難相繼出現.
22 、Can carry serial communication interface.───可帶有串行通訊接口。
23 、Serial Code Last 8 Digits of VIN No.───序列號 車(chē)輛標識號的后八位
24 、During the practice process, a serial of risks are in existence.───在這一操作過(guò)程中,存在著(zhù)一系列的法律風(fēng)險。
25 、Can you account for the serial failures in our experiment ?───你能解釋我們實(shí)驗屢屢失敗的原因嗎?
26 、Serial port The connection for serial interface.───串聯(lián)**口連接串聯(lián)接駁器的**口。
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.───一部新的連續劇今晚開(kāi)始在電視臺播出。
32 、You can interact with fields easily by a single form element, serialize form and fields.───幾乎每個(gè)項目我都需要創(chuàng )建網(wǎng)頁(yè)風(fēng)格和驗證表單元素。
33 、The sale will only go ahead if the serial numbers match.───只有當序號都相符合時(shí),銷(xiāo)售才能繼續進(jìn)行。
34 、Parity used for serial transmission.───串行傳輸使用的校驗。
35 、One serial killer's car is found in the junkyard of another serial killer.─── 一個(gè)連環(huán)殺手的車(chē) 出現在另一個(gè)連環(huán)殺手的廢車(chē)場(chǎng)里
36 、Prints data to the serial port.───從串行端口輸出數據。
37 、She was one of a rare breed - a female serial killer.───她屬于另類(lèi) -- 一個(gè)連環(huán)女殺手。
38 、Be sure to put down its make, brand and serial number.───務(wù)必寫(xiě)清楚它的產(chǎn)地、品牌和編號。
39 、External power supply needed for Serial Expanders.───串行擴展器需要外部電源供應。
40 、It is the responsibility of the application to serialize access to the port correctly.───如何正確而有序的(序列化)訪(fǎng)問(wèn)那端口因該是應用程序的值責。
41 、A serial counter is also called a ripple counter.───串行計數器亦叫脈沖型計數器。
42 、He started a magazine serial about a scientific detective.───他開(kāi)始著(zhù)雜志上一篇科學(xué)**的連載**。
43 、You’ll learn about different ways to serialize Ruby objects to JSON.───你將學(xué)到如何將 Ruby 物件轉換成 JSON 的格式。
44 、He's doing that because he's a serial killer.─── 他這么做是因為他是個(gè)連環(huán)殺手
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()返回一個(gè)字符串,包含著(zhù)可以?xún)Υ嬗赑HP的任何值的字節流表示。
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.───務(wù)必寫(xiě)清它的產(chǎn)地、牌名和編號。
49 、Was there any apprehension about playing a serial killer?───你對扮演一個(gè)連環(huán)殺手有什么擔憂(yōu)嗎?
50 、Writes data to the serial port output buffer.───將數據寫(xiě)入串行端口輸出緩沖區。
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.───你可在下周同樣時(shí)間看到該連續劇的第二集。
54 、He portrayed a serial killer in a Broadway show.───他曾在一個(gè)百老匯演出中扮演一位連環(huán)殺手。
55 、The GCM communicates with the PCCI control over a serial data link.───GCM與PCC通過(guò)串行數據連接。
56 、But we haven't been invited, and it isn't serial.─── 但我們并沒(méi)收到邀請 這也不是連環(huán)兇殺案
57 、Later, we suspected that the culprit could be all those operations needed to serialize each number.───后來(lái),我們懷疑原因可能是序列化每個(gè)數字所需的所有那些操作。
58 、No serial device was successfully initialized. The serial driver will unload.───串行設備初始化不成功。串行驅動(dòng)程序將卸載。
59 、Well, we can't rule out a serial killer murdering serial killers.─── 不能排除是連環(huán)殺手 殺的連環(huán)殺手
60 、Different JDK levels can serialize and deserialize resources slightly differently, which can cause run-time problems.───不同的JDK級別會(huì )用稍微不同的方法對資源進(jìn)行序列化和反序列化,這樣會(huì )導致出現運行時(shí)問(wèn)題。
61 、Command-line error: Invalid port for serial port mapping.───命令行錯誤:串行端口映射的端口無(wú)效。
62 、If you are using a serial console, send a break to the machine.───如果您使用的是串口控制臺,發(fā)送break到機器。
63 、Be sure to put down it make, brand and serial number.───務(wù)必寫(xiě)清它的產(chǎn)地、品牌和編號。
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.───在串行存儲延遲線(xiàn)中,計算機字通過(guò)某指定點(diǎn)的一種時(shí)間度量。該字的所有位必須通過(guò)輸入控制門(mén),拍則是所有位時(shí)間之和。
65 、This is the serial number for the uzi.─── 這是那把烏茲沖鋒**的序列號
66 、This zip describes TWI communication with a 2 wire serial EEPROM.───(譯):這郵編介紹契維語(yǔ)溝通, 2線(xiàn)串行EEPROM 。
67 、However, SOAP allows for a richer use of XML to encode and serialize complex data structures such as classes.───但是,SOAP允許更豐富地使用XML,以對復雜數據結構(例如類(lèi))進(jìn)行編碼和序列化。
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模塊進(jìn)行測試。
71 、There are no Serial Ports which can be setup on this system.───在這個(gè)系統上沒(méi)有可以安裝的串行口。
72 、Under the terms DOS operating system Multiport Serial Card.───MOXA卡的操作.用語(yǔ)DOS系統下操作多串口卡。
73 、Do you want to serialize all AE plugins?───你想要連載所有的 AE **件嗎?
74 、Its serial, kaleidoscopic exposures force us to follow its lead.───它那系列的、多變的畫(huà)面引著(zhù)我們跟著(zhù)它走。
75 、AVR MCU through serial application of GPS to read all the data.───AVR系列單片機通過(guò),串口應用讀取GPS全部數據。
76 、To convert serial or timedependent parallel data into static form.───將串行或與時(shí)間有關(guān)的并行數據轉換成靜態(tài)形式的過(guò)程。
77 、Goliath as a serial crier does not work on a number of levels.───一個(gè)哭啼不迭的巨人是不能在很多級別的競爭中勝出的。
78 、There's a serial killer on the loose.─── 有一個(gè)連環(huán)殺手在外面逍遙法外
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是使用串行設備進(jìn)行數據傳輸的協(xié)議。
82 、It communicates with the main board by a serial line.───它和主板間是通過(guò)傳形線(xiàn)連接。
83 、The girl frightened trembles, said that got rid the serial number.───女孩嚇得哆哆嗦嗦,說(shuō)出了手機號。
84 、They can take serial communication interface.───可帶串行通訊接口。
85 、I2C bus is a two-wire low-speed serial bus developed by Phillips.───I2C 總線(xiàn)在 嵌入式系統 中可用于音頻、視頻以及多種 傳感器等設備信號的傳輸。
86 、He's a serial killer studying serial killers.─── 他是個(gè)正在研究連環(huán)殺手的連環(huán)殺手
87 、Because it was baked by a serial killer.─── 因為這是一個(gè)連環(huán)殺手烤的
88 、Projection and denial are hallmarks of the serial bully.───和。否認。是連環(huán)欺負人的標記。
89 、Perhaps the name of that serial was Huo Yuan jian.───可能是《霍元甲》吧。
90 、Serial port: The connection for serial interface.───串聯(lián)**口:連接串聯(lián)接駁器的**口。
如何將Hashtable變量的數據序列化成字符串
你把Hashtable的對象通過(guò)序列化處理就可以了。
不過(guò)要求放置在Hashtable對象中的每個(gè)元素對象必須是可以序列化的,否則會(huì )失敗。
下面的代碼你可以直接使用:
// 類(lèi) 名 稱(chēng):SerializationHelper(類(lèi)數據序列化處理類(lèi))
// 功能描述:本類(lèi)以靜態(tài)函數的形式實(shí)現序列化和反序列化功能
//
// 內 容:增加函數MaskStrToBytes和UnmaskBytesToStr,同時(shí)對Serialize后/Deserialize前的數據進(jìn)行Mask和Unmask處理
//
using System;
using System.IO;
using System.Runtime.Serialization.Formatters.Binary;
using System.Windows.Forms;
using System.Text;
namespace Common.Serialize
{
///
/// SerializationHelper 的摘要說(shuō)明。
///
public class SerializationHelper
{
//
//函數:Serialize
//類(lèi)型:byte[]
//參數:data,object類(lèi)型,要序列化處理的數據類(lèi)型
//訪(fǎng)問(wèn):public、static
//功能:對指定對象的數據進(jìn)行序列化處理,處理完成后的數據存儲到指定的文件中。
//其他:
//
//作者: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
//類(lèi)型:object
//參數:binaryData,byte[]類(lèi)型,要反序列化的數據字節數組
//訪(fǎng)問(wèn):public、static
//功能:對二進(jìn)制文件進(jìn)行反序列化處理,返回反序列化后的數據對象
//其他:
//
//作者: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
//類(lèi)型:void
//參數:data,object類(lèi)型,要序列化處理的數據類(lèi)型
// filePath,string類(lèi)型,數據序列化后保存的文件名
//訪(fǎng)問(wèn):public、static
//功能:對指定對象的數據進(jìn)行序列化處理,處理完成后的數據存儲到指定的文件中。
//其他:
//
//作者:Daview
//日期:2004年06月04日
//
//修改:Daview
//日期:2004年08月16日
//內容:把序列化過(guò)程獨立出去
//
public static void Serialize(object data, string filePath)
{
string cipherData;
string binaryData;
try
{
//打開(kāi)文件
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
{
//關(guān)閉文件
fs.Flush();
fs.Close();
}
}
catch(Exception e)
{
ErrInfo.NewErrInfo(e);
}
}
//
//函數:Deserialize
//類(lèi)型:object
//參數:filePath,string類(lèi)型,要反序列化的數據文件名
//訪(fǎng)問(wèn):public、static
//功能:對二進(jìn)制文件進(jìn)行反序列化處理,返回反序列化后的數據對象
//其他:
//
//作者:Daview
//日期:2004年06月04日
//
//修改:Daview
//日期:2004年08月16日
//內容:把反序列化過(guò)程獨立出去
//
public static object Deserialize(string filePath)
{
object data=new object();
try
{
//打開(kāi)文件
FileStream fs=new FileStream(filePath,FileMode.Open,FileAccess.Read);
//StreamReader sr=new StreamReader(filePath);
try
{
//讀取二進(jìn)制文件并轉化為字符串
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
{
//關(guān)閉reader
fs.Close();
//sr.Close();
}
}
catch(Exception e)
{
//文件不存在
ErrInfo.NewErrInfo(e);
data=null;
}
return data;
}
//
//函數:MaskStrToBytes
//類(lèi)型:byte[]
//參數:str,string類(lèi)型,要進(jìn)行Mask處理的字符串數據
//訪(fǎng)問(wèn):private、static
//功能:對字符串轉化為字節數組并對所有字節進(jìn)行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 //類(lèi)型:string //參數:bits,byte[]類(lèi)型,要進(jìn)行Unmask處理的字節數組數據 //訪(fǎng)問(wèn):private、static //功能:對字節數組進(jìn)行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); } } } 私有變量前會(huì )出現空格,它不會(huì )顯示出來(lái),復制粘貼去轉碼就會(huì )出問(wèn)題,自己手動(dòng)加空格好像也會(huì )被過(guò)濾掉,要轉碼可直接在代碼中調用base64_encode()serialize()序列化的時(shí)候為什么會(huì )出現空格
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。