Esempio n. 1
0
        /// <summary>
        /// Create ByteBuffe From Stream
        /// </summary>
        /// <param name="p_Stream">Stream Content</param>
        /// <returns></returns>
        public static ByteBuffe FromStream(Stream p_Stream)
        {
            ByteBuffe bb = new ByteBuffe();

            bb.SetData(p_Stream);
            return(bb);
        }
Esempio n. 2
0
        /// <summary>
        /// Create ByteBuffe From Stream
        /// </summary>
        /// <param name="p_Base64String">Base64String</param>
        /// <returns></returns>
        public static ByteBuffe FromString(String p_Base64String)
        {
            ByteBuffe bb = new ByteBuffe();

            bb.SetData(p_Base64String);
            return(bb);
        }
Esempio n. 3
0
 public void Dispose()
 {
     if (null != Voice)
     {
         Voice.Dispose();
     }
     Voice = null;
 }
Esempio n. 4
0
 /// <summary>
 /// Create ByteBuffe From Stream
 /// </summary>
 /// <param name="p_Base64String">Base64String</param>
 /// <returns></returns>
 public static ByteBuffe FromString(String p_Base64String)
 {
     ByteBuffe bb = new ByteBuffe();
     bb.SetData(p_Base64String);
     return bb;
 }
Esempio n. 5
0
 /// <summary>
 /// Create ByteBuffe From Stream
 /// </summary>
 /// <param name="p_Stream">Stream Content</param>
 /// <returns></returns>
 public static ByteBuffe FromStream(Stream p_Stream)
 {
     ByteBuffe bb = new ByteBuffe();
     bb.SetData(p_Stream);
     return bb;
 }
Esempio n. 6
0
 public static void SaveFile(String p_FilePath, ByteBuffe p_Buffe)
 {
     if (!String.IsNullOrEmpty(p_FilePath) && p_Buffe.Count > 0)
     {
         IsolatedStorageManager.CreateImageFile(p_FilePath, p_Buffe.ToArrary());
     }
 }