Beispiel #1
0
        public byte[] GetPathLocation(AbsolutePath path)
        {
            string rootPath = PathUtilities.GetRootPath(path);

            return(Encoding.Default.GetBytes(rootPath.ToCharArray()));
        }
Beispiel #2
0
        public virtual AbsolutePath GeneratePath(ContentHash contentHash, byte[] contentLocationIdContent)
        {
            string rootPath = new string(Encoding.Default.GetChars(contentLocationIdContent));

            return(PathUtilities.GetContentPath(rootPath, contentHash));
        }