yijunyu/c-to-rust huggingface dataset:
// Original:
public SelectionRecord(RecordInputStream in) {field_1_pane            = in.readByte();field_2_row_active_cell = in.readUShort();field_3_col_active_cell = in.readShort();field_4_active_cell_ref_index = in.readShort();int field_5_num_refs    = in.readUShort();field_6_refs = new CellRangeAddress8Bit[field_5_num_refs];for (int i = 0; i < field_6_refs.length; i++) {field_6_refs[i] = new CellRangeAddress8Bit(in);}}

// Translation:
public SelectionRecord(RecordInputStream in1){field_1_pane = (byte)in1.ReadByte();field_2_row_active_cell = in1.ReadUShort();field_3_col_active_cell = in1.ReadShort();field_4_ref_active_cell = in1.ReadShort();int field_5_num_refs = in1.ReadUShort();field_6_refs = new CellRangeAddress8Bit[field_5_num_refs];for (int i = 0; i < field_5_num_refs; i++){field_6_refs[i] = new CellRangeAddress8Bit(in1);}}
// Original:
public void setNeedNewObjectIds(boolean b) {if (b)newObjectIds = new ObjectIdSubclassMap<>();elsenewObjectIds = null;}

// Translation:
public virtual void SetNeedNewObjectIds(bool b){if (b){newObjectIds = new ObjectIdSubclassMap<ObjectId>();}else{newObjectIds = null;}}
// Original:
public GetResolverRulePolicyResult getResolverRulePolicy(GetResolverRulePolicyRequest request) {request = beforeClientExecution(request);return executeGetResolverRulePolicy(request);}

// Translation:
public virtual GetResolverRulePolicyResponse GetResolverRulePolicy(GetResolverRulePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRulePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRulePolicyResponseUnmarshaller.Instance;return Invoke<GetResolverRulePolicyResponse>(request, options);}
// Original:
public static DoubleBuffer wrap(double[] array) {return wrap(array, 0, array.length);}

// Translation:
public static java.nio.DoubleBuffer wrap(double[] array_1){return wrap(array_1, 0, array_1.Length);}
// Original:
public UnitsRecord clone() {return copy();}

// Translation:
public override Object Clone(){UnitsRecord rec = new UnitsRecord();rec.field_1_units = field_1_units;return rec;}
// Original:
public void readFully(byte[] buf, int off, int len) {try {checkEOF(_read(buf, off, len), len);} catch (IOException e) {throw new RuntimeException(e);}}

// Translation:
public void ReadFully(byte[] buf, int off, int len){int max = off + len;for (int i = off; i < max; i++){byte ch;try{ch = (byte)in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch);buf[i] = ch;}}
// Original:
public DescribeInterconnectLoaResult describeInterconnectLoa(DescribeInterconnectLoaRequest request) {request = beforeClientExecution(request);return executeDescribeInterconnectLoa(request);}

// Translation:
public virtual DescribeInterconnectLoaResponse DescribeInterconnectLoa(DescribeInterconnectLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInterconnectLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInterconnectLoaResponseUnmarshaller.Instance;return Invoke<DescribeInterconnectLoaResponse>(request, options);}
// Original:
public static ByteOrder nativeOrder() {return NATIVE_ORDER;}

// Translation:
public static java.nio.ByteOrder nativeOrder(){return NATIVE_ORDER;}
// Original:
public CalcModeRecord(RecordInputStream in) {field_1_calcmode = in.readShort();}

// Translation:
public CalcModeRecord(RecordInputStream in1){field_1_calcmode = in1.ReadShort();}
// Original:
public void addParentId(AnyObjectId additionalParent) {if (parentIds.length == 0) {setParentId(additionalParent);} else {ObjectId[] newParents = new ObjectId[parentIds.length + 1];System.arraycopy(parentIds, 0, newParents, 0, parentIds.length);newParents[parentIds.length] = additionalParent.copy();parentIds = newParents;}}

// Translation:
public virtual void AddParentId(AnyObjectId additionalParent){if (parentIds.Length == 0){SetParentId(additionalParent);}else{ObjectId[] newParents = new ObjectId[parentIds.Length + 1];System.Array.Copy(parentIds, 0, newParents, 0, parentIds.Length);newParents[parentIds.Length] = additionalParent.Copy();parentIds = newParents;}}
// Original:
public CreateAccessPointResult createAccessPoint(CreateAccessPointRequest request) {request = beforeClientExecution(request);return executeCreateAccessPoint(request);}

// Translation:
public virtual CreateAccessPointResponse CreateAccessPoint(CreateAccessPointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAccessPointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAccessPointResponseUnmarshaller.Instance;return Invoke<CreateAccessPointResponse>(request, options);}
// Original:
public DeleteLoadBalancerListenersResult deleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancerListeners(request);}

// Translation:
public virtual DeleteLoadBalancerListenersResponse DeleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerListenersRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerListenersResponseUnmarshaller.Instance;return Invoke<DeleteLoadBalancerListenersResponse>(request, options);}
// Original:
public DescribeOrderableClusterOptionsResult describeOrderableClusterOptions() {return describeOrderableClusterOptions(new DescribeOrderableClusterOptionsRequest());}

// Translation:
public virtual DescribeOrderableClusterOptionsResponse DescribeOrderableClusterOptions(){return DescribeOrderableClusterOptions(new DescribeOrderableClusterOptionsRequest());}
// Original:
public void setDerefTags(boolean deref) {derefTags = deref;}

// Translation:
public virtual void SetDerefTags(bool deref){derefTags = deref;}
// Original:
public DeactivateMFADeviceRequest(String userName, String serialNumber) {setUserName(userName);setSerialNumber(serialNumber);}

// Translation:
public DeactivateMFADeviceRequest(string userName, string serialNumber){_userName = userName;_serialNumber = serialNumber;}
// Original:
public boolean markSupported() {synchronized (lock) {return in.markSupported();}}

// Translation:
public override bool markSupported(){lock (@lock){return @in.markSupported();}}
// Original:
public static void createNewFile(File f) throws IOException {if (!f.createNewFile())throw new IOException(MessageFormat.format(JGitText.get().createNewFileFailed, f));}

// Translation:
public static void CreateNewFile(FilePath f){if (!f.CreateNewFile()){throw new IOException(MessageFormat.Format(JGitText.Get().createNewFileFailed, f));}}
// Original:
public String getFieldAsString() {if (this.field == null)return null;elsereturn this.field.toString();}

// Translation:
public virtual string GetFieldAsString(){if (this.field == null)return null;elsereturn this.field.ToString();}
// Original:
public void inform(ResourceLoader loader) throws IOException {String dicts[] = dictionaryFiles.split(",");InputStream affix = null;List<InputStream> dictionaries = new ArrayList<>();try {dictionaries = new ArrayList<>();for (String file : dicts) {dictionaries.add(loader.openResource(file));}affix = loader.openResource(affixFile);Path tempPath = Files.createTempDirectory(Dictionary.getDefaultTempDir(), "Hunspell");try (Directory tempDir = FSDirectory.open(tempPath)) {this.dictionary = new Dictionary(tempDir, "hunspell", affix, dictionaries, ignoreCase);} finally {IOUtils.rm(tempPath);}} catch (ParseException e) {throw new IOException("Unable to load hunspell data! [dictionary=" + dictionaries + ",affix=" + affixFile + "]", e);} finally {IOUtils.closeWhileHandlingException(affix);IOUtils.closeWhileHandlingException(dictionaries);}}

// Translation:
public virtual void Inform(IResourceLoader loader){string[] dicts = dictionaryFiles.Split(',').TrimEnd();Stream affix = null;IList<Stream> dictionaries = new List<Stream>();try{dictionaries = new List<Stream>();foreach (string file in dicts){dictionaries.Add(loader.OpenResource(file));}affix = loader.OpenResource(affixFile);this.dictionary = new Dictionary(affix, dictionaries, ignoreCase);}catch (Exception e){throw new IOException("Unable to load hunspell data! [dictionary=" + dictionaries + ",affix=" + affixFile + "]", e);}finally{IOUtils.DisposeWhileHandlingException(affix);IOUtils.DisposeWhileHandlingException(dictionaries);}}
// Original:
public DetectDocumentTextResult detectDocumentText(DetectDocumentTextRequest request) {request = beforeClientExecution(request);return executeDetectDocumentText(request);}

// Translation:
public virtual DetectDocumentTextResponse DetectDocumentText(DetectDocumentTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectDocumentTextRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectDocumentTextResponseUnmarshaller.Instance;return Invoke<DetectDocumentTextResponse>(request, options);}
// Original:
public DescribeCertificatesResult describeCertificates(DescribeCertificatesRequest request) {request = beforeClientExecution(request);return executeDescribeCertificates(request);}

// Translation:
public virtual DescribeCertificatesResponse DescribeCertificates(DescribeCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCertificatesResponseUnmarshaller.Instance;return Invoke<DescribeCertificatesResponse>(request, options);}
// Original:
public int getFormatCount() {return _formats.length;}

// Translation:
public int GetFormatCount(){return m_formats.Count;}
// Original:
public GetOutcomesResult getOutcomes(GetOutcomesRequest request) {request = beforeClientExecution(request);return executeGetOutcomes(request);}

// Translation:
public virtual GetOutcomesResponse GetOutcomes(GetOutcomesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOutcomesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOutcomesResponseUnmarshaller.Instance;return Invoke<GetOutcomesResponse>(request, options);}
// Original:
public Set<URIishField> getOptionalFields() {return Collections.emptySet();}

// Translation:
public virtual ICollection<TransportProtocol.URIishField> GetOptionalFields(){return Sharpen.Collections.EmptySet<TransportProtocol.URIishField>();}
// Original:
public BasicStats(String field, double boost) {this.field = field;this.boost = boost;}

// Translation:
public BasicStats(string field, float queryBoost){this.field = field;this.m_queryBoost = queryBoost;this.m_totalBoost = queryBoost;}
// Original:
public UpdateSecurityGroupRuleDescriptionsIngressResult updateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest request) {request = beforeClientExecution(request);return executeUpdateSecurityGroupRuleDescriptionsIngress(request);}

// Translation:
public virtual UpdateSecurityGroupRuleDescriptionsIngressResponse UpdateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSecurityGroupRuleDescriptionsIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSecurityGroupRuleDescriptionsIngressResponseUnmarshaller.Instance;return Invoke<UpdateSecurityGroupRuleDescriptionsIngressResponse>(request, options);}
// Original:
public long getOffset() {return position;}

// Translation:
public virtual long GetOffset(){return position;}
// Original:
public Collection<Ref> getAdvertisedRefs() {return Collections.unmodifiableCollection(advertisedRefs.values());}

// Translation:
public virtual ICollection<Ref> GetAdvertisedRefs(){return Sharpen.Collections.UnmodifiableCollection(advertisedRefs.Values);}
// Original:
public QueryParser(QueryParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}

// Translation:
public QueryParser(QueryParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}
// Original:
public void setText(CharacterIterator newText) {start = newText.getBeginIndex();end = newText.getEndIndex();text = newText;current = start;}

// Translation:
public override void SetText(CharacterIterator newText){start = newText.BeginIndex;end = newText.EndIndex;text = newText;current = start;}
// Original:
public PutOutcomeResult putOutcome(PutOutcomeRequest request) {request = beforeClientExecution(request);return executePutOutcome(request);}

// Translation:
public virtual PutOutcomeResponse PutOutcome(PutOutcomeRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutOutcomeRequestMarshaller.Instance;options.ResponseUnmarshaller = PutOutcomeResponseUnmarshaller.Instance;return Invoke<PutOutcomeResponse>(request, options);}
// Original:
public UnescapedCharSequence(CharSequence text) {this.chars = new char[text.length()];this.wasEscaped = new boolean[text.length()];for (int i = 0; i < text.length(); i++) {this.chars[i] = text.charAt(i);this.wasEscaped[i] = false;}}

// Translation:
public UnescapedCharSequence(ICharSequence text){this.chars = new char[text.Length];this.wasEscaped = new bool[text.Length];for (int i = 0; i < text.Length; i++){this.chars[i] = text[i];this.wasEscaped[i] = false;}}
// Original:
public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, doubleCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, doubleCount);}this.position += doubleCount;return this;}

// Translation:
public override java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, doubleCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, doubleCount);}this._position += doubleCount;return this;}
// Original:
public void remove() {throw new UnsupportedOperationException();}

// Translation:
public virtual void remove(){throw new System.NotSupportedException();}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CHARTTITLEFORMAT]\n");buffer.append("    .format_runs       = ").append(_formats.length).append("\n");for(int i=0; i<_formats.length; i++) {CTFormat ctf = _formats[i];buffer.append("       .char_offset= ").append(ctf.getOffset());buffer.append(",.fontidx= ").append(ctf.getFontIndex());buffer.append("\n");}buffer.append("[/CHARTTITLEFORMAT]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[ALRUNS]\n");buffer.Append("    .format_runs       = ").Append(m_recs).Append("\n");int idx;CTFormat ctf;for (idx = 0; idx < m_formats.Count; idx++){ctf = (CTFormat)m_formats[idx];buffer.Append("       .char_offset= ").Append(ctf.Offset);buffer.Append(",.fontidx= ").Append(ctf.FontIndex);buffer.Append("\n");}buffer.Append("[/ALRUNS]\n");return buffer.ToString();}
// Original:
public StartDominantLanguageDetectionJobResult startDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartDominantLanguageDetectionJob(request);}

// Translation:
public virtual StartDominantLanguageDetectionJobResponse StartDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDominantLanguageDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDominantLanguageDetectionJobResponseUnmarshaller.Instance;return Invoke<StartDominantLanguageDetectionJobResponse>(request, options);}
// Original:
public static boolean hasNonConflictingAltSet(Collection<BitSet> altsets) {for (BitSet alts : altsets) {if ( alts.cardinality()==1 ) {return true;}}return false;}

// Translation:
public static bool HasNonConflictingAltSet(IEnumerable<BitSet> altsets){foreach (BitSet alts in altsets){if (alts.Cardinality() == 1){return true;}}return false;}
// Original:
public ByteBuffer putChar(int index, char value) {return putShort(index, (short) value);}

// Translation:
public override java.nio.ByteBuffer putChar(int index, char value){return putShort(index, (short)value);}
// Original:
public DataValidationConstraint createTextLengthConstraint(int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(ValidationType.TEXT_LENGTH, operatorType, formula1, formula2);}

// Translation:
public IDataValidationConstraint CreateTextLengthConstraint(int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(ValidationType.TEXT_LENGTH, operatorType, formula1, formula2);}
// Original:
public void writeShort(int v) {writeContinueIfRequired(2);_ulrOutput.writeShort(v);}

// Translation:
public void WriteShort(int v){_out.WriteShort(v);_size += 2;}
// Original:
public final short getShort(int index) {checkIndex(index, SizeOf.SHORT);return Memory.peekShort(backingArray, offset + index, order);}

// Translation:
public sealed override short getShort(int index){checkIndex(index, libcore.io.SizeOf.SHORT);return libcore.io.Memory.peekShort(backingArray, offset + index, _order);}
// Original:
public static FuncPtg create(int functionIndex) {FunctionMetadata fm = FunctionMetadataRegistry.getFunctionByIndex(functionIndex);if(fm == null) {throw new RuntimeException("Invalid built-in function index (" + functionIndex + ")");}return new FuncPtg(functionIndex, fm);}

// Translation:
public static FuncPtg Create(int functionIndex) {FunctionMetadata fm = FunctionMetadataRegistry.GetFunctionByIndex(functionIndex);if(fm == null) {throw new Exception("Invalid built-in function index (" + functionIndex + ")");}return new FuncPtg(functionIndex, fm);}
// Original:
public String toString() {return "{"+ruleIndex+":"+predIndex+"}?";}

// Translation:
public override string ToString(){return "{" + ruleIndex + ":" + predIndex + "}?";}
// Original:
public ListDashboardsResult listDashboards(ListDashboardsRequest request) {request = beforeClientExecution(request);return executeListDashboards(request);}

// Translation:
public virtual ListDashboardsResponse ListDashboards(ListDashboardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance;return Invoke<ListDashboardsResponse>(request, options);}
// Original:
public DeleteVoiceTemplateResult deleteVoiceTemplate(DeleteVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceTemplate(request);}

// Translation:
public virtual DeleteVoiceTemplateResponse DeleteVoiceTemplate(DeleteVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceTemplateResponseUnmarshaller.Instance;return Invoke<DeleteVoiceTemplateResponse>(request, options);}
// Original:
public void addListenerForAllRecords(HSSFListener lsnr) {short[] rectypes = RecordFactory.getAllKnownRecordSIDs();for (short rectype : rectypes) {addListener(lsnr, rectype);}}

// Translation:
public void AddListenerForAllRecords(IHSSFListener lsnr){short[] rectypes = RecordFactory.GetAllKnownRecordSIDs();for (int k = 0; k < rectypes.Length; k++){AddListener(lsnr, rectypes[k]);}}
// Original:
public DescribeLocalGatewayRouteTablesResult describeLocalGatewayRouteTables(DescribeLocalGatewayRouteTablesRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayRouteTables(request);}

// Translation:
public virtual DescribeLocalGatewayRouteTablesResponse DescribeLocalGatewayRouteTables(DescribeLocalGatewayRouteTablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayRouteTablesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayRouteTablesResponseUnmarshaller.Instance;return Invoke<DescribeLocalGatewayRouteTablesResponse>(request, options);}
// Original:
public EnableDomainAutoRenewResult enableDomainAutoRenew(EnableDomainAutoRenewRequest request) {request = beforeClientExecution(request);return executeEnableDomainAutoRenew(request);}

// Translation:
public virtual EnableDomainAutoRenewResponse EnableDomainAutoRenew(EnableDomainAutoRenewRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableDomainAutoRenewRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableDomainAutoRenewResponseUnmarshaller.Instance;return Invoke<EnableDomainAutoRenewResponse>(request, options);}
// Original:
public String toString() {StringBuilder result = new StringBuilder();result.append(type.toString());result.append('<');result.append(name);result.append(':');if (fieldsData != null) {result.append(fieldsData);}result.append('>');return result.toString();}

// Translation:
public override string ToString(){StringBuilder result = new StringBuilder();result.Append(m_type.ToString());result.Append('<');result.Append(m_name);result.Append(':');if (FieldsData != null){result.Append(FieldsData);}result.Append('>');return result.ToString();}
// Original:
public DescribeConversionTasksResult describeConversionTasks() {return describeConversionTasks(new DescribeConversionTasksRequest());}

// Translation:
public virtual DescribeConversionTasksResponse DescribeConversionTasks(){return DescribeConversionTasks(new DescribeConversionTasksRequest());}
// Original:
public GetFieldLevelEncryptionProfileConfigResult getFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest request) {request = beforeClientExecution(request);return executeGetFieldLevelEncryptionProfileConfig(request);}

// Translation:
public virtual GetFieldLevelEncryptionProfileConfigResponse GetFieldLevelEncryptionProfileConfig(GetFieldLevelEncryptionProfileConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFieldLevelEncryptionProfileConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFieldLevelEncryptionProfileConfigResponseUnmarshaller.Instance;return Invoke<GetFieldLevelEncryptionProfileConfigResponse>(request, options);}
// Original:
public ListInstancesResult listInstances(ListInstancesRequest request) {request = beforeClientExecution(request);return executeListInstances(request);}

// Translation:
public virtual ListInstancesResponse ListInstances(ListInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInstancesResponseUnmarshaller.Instance;return Invoke<ListInstancesResponse>(request, options);}
// Original:
public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {final byte block = blocks[blocksOffset++];values[valuesOffset++] = (block >>> 6) & 3;values[valuesOffset++] = (block >>> 4) & 3;values[valuesOffset++] = (block >>> 2) & 3;values[valuesOffset++] = block & 3;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){var block = blocks[blocksOffset++];values[valuesOffset++] = ((int)((uint)block >> 6)) & 3;values[valuesOffset++] = ((int)((uint)block >> 4)) & 3;values[valuesOffset++] = ((int)((uint)block >> 2)) & 3;values[valuesOffset++] = block & 3;}}