ToBytes() public static method

Converts to bytes using Latin1 (ISO-8859-1)
public static ToBytes ( String x ) : byte[]
x String
return byte[]
Ejemplo n.º 1
0
 /// <summary>
 /// Sets profile name and profile
 /// </summary>
 /// <param name="name">profile name </param>
 /// <param name="profile">profile (latin1 string)</param>
 public void SetProfileNameAndContent(String name, String profile)
 {
     SetProfileNameAndContent(name, ChunkHelper.ToBytes(profileName));
 }
Ejemplo n.º 2
0
        public ChunkRaw CreateEmptyChunk(int len, bool alloc)
        {
            var c = new ChunkRaw(len, ChunkHelper.ToBytes(Id), alloc);

            return(c);
        }