예제 #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);
        }
예제 #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);
        }
예제 #3
0
 public void Write(BlockFileStream stream, object objectToWrite)
 {
 }
예제 #4
0
 public void Write(BlockFileStream stream, object objectToWrite, TypeInfo typeInfo)
 {
 }