public Block Write(BlockFileStream stream, string stringToWrite) { var block = XIO.Api.BlockStreams.IssueBlock(stream, stringToWrite.Length * 2 + 8); block.Write(stringToWrite); return(block); }
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); }
public void Write(BlockFileStream stream, object objectToWrite) { }
public void Write(BlockFileStream stream, object objectToWrite, TypeInfo typeInfo) { }