public static object Chars(params int[] chars) { var count = chars.Length; var array = new PrintableList<ISingleCharRx>(count); for (var i = 0; i < count; i++) { array.Add(new CharRx(chars[i])); } return array; }
public static IList <RayQueryCandidateIntersectionType> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <RayQueryCandidateIntersectionType>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <AccessQualifier> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <AccessQualifier>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <KernelProfilingInfo> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <KernelProfilingInfo>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <FunctionParameterAttribute> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <FunctionParameterAttribute>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <PairLiteralIntegerIdRef> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <PairLiteralIntegerIdRef>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <SamplerAddressingMode> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <SamplerAddressingMode>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <ImageChannelDataType> ParseCollection(WordReader reader, uint wordCount) { var end = reader.Position + wordCount; var res = new PrintableList <ImageChannelDataType>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position)); } return(res); }
public static IList <LiteralContextDependentNumber> ParseCollection(WordReader reader, uint wordCount, InstructionWithId type) { var end = reader.Position + wordCount; var res = new PrintableList <LiteralContextDependentNumber>(); while (reader.Position < end) { res.Add(Parse(reader, end - reader.Position, type)); } return(res); }
public IList <Node> GetNodes(IList <IdRef> ids) { var nodes = new PrintableList <Node>(); if (ids != null) { foreach (var idRef in ids) { nodes.Add(GetNode(idRef)); } } return(nodes); }