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

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

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