예제 #1
0
        public static MiniDestination miniDestinationFromBlob(string containerName, string blobName)
        {
            StreamReader    input    = new StreamReader(BlobLibrary.getBlobReadStream(containerName, blobName));
            MiniDestination toreturn = miniDestinationFromStream(input);

            input.Close();

            return(toreturn);
        }
예제 #2
0
        public static void SToBlob(bool[] S, string containerName, string blobName)
        {
            StreamWriter output = new StreamWriter(BlobLibrary.getBlobWriteStream(containerName, blobName));

            for (int i = 0; i < S.Length; i++)
            {
                output.Write(S[i] + " ");
            }
            output.Write("\n");
            output.Close();
        }
예제 #3
0
        public static bool[] SFromBlob(string containerName, string blobName)
        {
            StreamReader input = new StreamReader(BlobLibrary.getBlobReadStream(containerName, blobName));

            string[] pieces   = input.ReadLine().Split(space, StringSplitOptions.RemoveEmptyEntries);
            bool[]   toreturn = new bool[pieces.Length];
            for (int i = 0; i < pieces.Length; i++)
            {
                toreturn[i] = bool.Parse(pieces[i]);
            }
            input.Close();
            return(toreturn);
        }