RPCV2Lib.rpcCracker.get_char C# (CSharp) Méthode

get_char() public méthode

public get_char ( ) : char
Résultat char
        public char get_char()
        {
            char value = (char)data[i];

            ++i;

            return value;
        }

Usage Example

Exemple #1
0
        private void Mount(rpcCracker cracker, rpcPacker reply)
        {
            uint length = cracker.get_uint32();

            string dirPath = "";

            for (uint i = 0; i < length; ++i)
                dirPath += cracker.get_char();

            Console.WriteLine("Mount {0}:{1}", length, dirPath);

            if (Directory.Exists(dirPath) == false)
            {
                reply.setUint32(2);	// Errno for no such file or directory
                reply.setUint32(0);	// Where fh would go
            }
            else
            {
                fhandle fh = FileTable.Add(new FileEntry(dirPath));

                reply.setUint32(0);		// Success

                fh.Pack(reply);
            }
        }
All Usage Examples Of RPCV2Lib.rpcCracker::get_char