Exemplo n.º 1
0
        public Block Write(BlockFileStream stream, string stringToWrite)
        {
            var block = XIO.Api.BlockStreams.IssueBlock(stream, stringToWrite.Length * 2 + 8);

            block.Write(stringToWrite);

            return(block);
        }
Exemplo n.º 2
0
        public Block IssueBlock(BlockFileStream stream, int length)
        {
            var block = new Block
            {
                Address  = stream.NextAddressToIssue,
                Position = 0,
                Length   = length,
                Data     = new byte[length]
            };

            stream.NextAddressToIssue += length;

            var node = new BlockNode
            {
                Value = block,
                Key   = block.Address
            };

            //stream.BlockTree = XIO.Api.BlockNodes.AddNode(stream.BlockTree, node);

            return(block);
        }
Exemplo n.º 3
0
 public void Write(BlockFileStream stream, object objectToWrite)
 {
 }
Exemplo n.º 4
0
 public void Write(BlockFileStream stream, object objectToWrite, TypeInfo typeInfo)
 {
 }