yijunyu/c-to-rust huggingface dataset:
// Original:
public InputIterator getEntryIterator() {try {return new FileIterator();} catch (IOException e) {throw new RuntimeException(e);}}

// Translation:
public virtual IInputIterator GetEntryIterator(){try{return new FileIterator(this);}catch (IOException e){throw new Exception(e.ToString(), e);}}
// Original:
public final long get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}

// Translation:
public sealed override long get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}
// Original:
public void setThumbOffset(int thumbOffset) {mThumbOffset = thumbOffset;invalidate();}

// Translation:
public virtual void setThumbOffset(int thumbOffset){mThumbOffset = thumbOffset;invalidate();}
// Original:
public void seekExact(BytesRef target, TermState otherState) {if (!target.equals(term)) {state.copyFrom(otherState);term = BytesRef.deepCopyOf(target);seekPending = true;}}

// Translation:
public override void SeekExact(BytesRef target, TermState otherState){if (!target.Equals(term_Renamed)){state.CopyFrom(otherState);term_Renamed = BytesRef.DeepCopyOf(target);seekPending = true;}}
// Original:
public GetFilterResult getFilter(GetFilterRequest request) {request = beforeClientExecution(request);return executeGetFilter(request);}

// Translation:
public virtual GetFilterResponse GetFilter(GetFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFilterResponseUnmarshaller.Instance;return Invoke<GetFilterResponse>(request, options);}
// Original:
public static FontDetails create( String fontName, Properties fontMetricsProps ){String heightStr = fontMetricsProps.getProperty( buildFontHeightProperty(fontName) );String widthsStr = fontMetricsProps.getProperty( buildFontWidthsProperty(fontName) );String charactersStr = fontMetricsProps.getProperty( buildFontCharactersProperty(fontName) );if(heightStr == null || widthsStr == null || charactersStr == null) {throw new IllegalArgumentException("The supplied FontMetrics doesn't know about the font '" + fontName + "', so we can't use it. Please add it to your font metrics file (see StaticFontMetrics.getFontDetails");}int height = Integer.parseInt(heightStr);FontDetails d = new FontDetails(fontName, height);String[] charactersStrArray = split(charactersStr, ",", -1);String[] widthsStrArray = split(widthsStr, ",", -1);if (charactersStrArray.length != widthsStrArray.length)throw new RuntimeException("Number of characters does not number of widths for font " + fontName);for ( int i = 0; i < widthsStrArray.length; i++ ){if (charactersStrArray[i].length() != 0)d.addChar(charactersStrArray[i].charAt(0), Integer.parseInt(widthsStrArray[i]));}return d;}

// Translation:
public static FontDetails Create(String fontName, Properties fontMetricsProps){String heightStr = fontMetricsProps[BuildFontHeightProperty(fontName)];String widthsStr = fontMetricsProps[BuildFontWidthsProperty(fontName)];String CharsStr = fontMetricsProps[BuildFontCharsProperty(fontName)];if (heightStr == null || widthsStr == null || CharsStr == null){throw new ArgumentException("The supplied FontMetrics doesn't know about the font '" + fontName + "', so we can't use it. Please Add it to your font metrics file (see StaticFontMetrics.GetFontDetails");}int height = int.Parse(heightStr, CultureInfo.InvariantCulture);FontDetails d = new FontDetails(fontName, height);String[] CharsStrArray = Split(CharsStr, ",", -1);String[] widthsStrArray = Split(widthsStr, ",", -1);if (CharsStrArray.Length != widthsStrArray.Length)throw new Exception("Number of Chars does not number of widths for font " + fontName);for (int i = 0; i < widthsStrArray.Length; i++){if (CharsStrArray[i].Trim().Length != 0)d.AddChar(CharsStrArray[i].Trim()[0], int.Parse(widthsStrArray[i], CultureInfo.InvariantCulture));}return d;}
// Original:
public static void registerFunction(String name, Function func){FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByName(name);if(metaData == null) {if(AnalysisToolPak.isATPFunction(name)) {throw new IllegalArgumentException(name + " is a function from the Excel Analysis Toolpack. " +"Use AnalysisToolpack.registerFunction(String name, FreeRefFunction func) instead.");}throw new IllegalArgumentException("Unknown function: " + name);}int idx = metaData.getIndex();if(functions[idx] instanceof NotImplementedFunction) {functions[idx] = func;} else {throw new IllegalArgumentException("POI already implememts " + name +". You cannot override POI's implementations of Excel functions");}}

// Translation:
public static void RegisterFunction(String name, Function func){FunctionMetadata metaData = FunctionMetadataRegistry.GetFunctionByName(name);if (metaData == null){if (AnalysisToolPak.IsATPFunction(name)){throw new ArgumentException(name + " is a function from the Excel Analysis Toolpack. " +"Use AnalysisToolpack.RegisterFunction(String name, FreeRefFunction func) instead.");}else{throw new ArgumentException("Unknown function: " + name);}}int idx = metaData.Index;if (functions[idx] is NotImplementedFunction){functions[idx] = func;}else{throw new ArgumentException("POI already implememts " + name +". You cannot override POI's implementations of Excel functions");}}
// Original:
public SortedSetDocValuesField(String name, BytesRef bytes) {super(name, TYPE);fieldsData = bytes;}

// Translation:
public SortedSetDocValuesField(string name, BytesRef bytes): base(name, TYPE){FieldsData = bytes;}
// Original:
public static TreeFilter create(TreeFilter[] list) {if (list.length == 2)return create(list[0], list[1]);if (list.length < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final TreeFilter[] subfilters = new TreeFilter[list.length];System.arraycopy(list, 0, subfilters, 0, list.length);return new List(subfilters);}

// Translation:
public static TreeFilter Create(TreeFilter[] list){if (list.Length == 2){return Create(list[0], list[1]);}if (list.Length < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}TreeFilter[] subfilters = new TreeFilter[list.Length];System.Array.Copy(list, 0, subfilters, 0, list.Length);return new OrTreeFilter.List(subfilters);}
// Original:
public V get(Object key) {if (key == null) {HashMapEntry<K, V> e = entryForNullKey;return e == null ? null : e.value;}int hash = key.hashCode();hash ^= (hash >>> 20) ^ (hash >>> 12);hash ^= (hash >>> 7) ^ (hash >>> 4);HashMapEntry<K, V>[] tab = table;for (HashMapEntry<K, V> e = tab[hash & (tab.length - 1)];e != null; e = e.next) {K eKey = e.key;if (eKey == key || (e.hash == hash && key.equals(eKey))) {return e.value;}}return null;}

// Translation:
public override V get(object key){if (key == null){java.util.HashMap.HashMapEntry<K, V> e = entryForNullKey;return e == null ? default(V) : e.value;}int hash = key.GetHashCode();hash ^= ((int)(((uint)hash) >> 20)) ^ ((int)(((uint)hash) >> 12));hash ^= ((int)(((uint)hash) >> 7)) ^ ((int)(((uint)hash) >> 4));java.util.HashMap.HashMapEntry<K, V>[] tab = table;{for (java.util.HashMap.HashMapEntry<K, V> e_1 = tab[hash & (tab.Length - 1)]; e_1!= null; e_1 = e_1.next){K eKey = e_1.key;if (Sharpen.Util.Equals(eKey, key) || (e_1.hash == hash && key.Equals(eKey))){return e_1.value;}}}return default(V);}
// Original:
public boolean hasSourceData(int idx) {return sourceLines[idx] != 0;}

// Translation:
public virtual bool HasSourceData(int idx){return sourceLines[idx] != 0;}
// Original:
public CreateBotResult createBot(CreateBotRequest request) {request = beforeClientExecution(request);return executeCreateBot(request);}

// Translation:
public virtual CreateBotResponse CreateBot(CreateBotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBotResponseUnmarshaller.Instance;return Invoke<CreateBotResponse>(request, options);}
// Original:
public UpdateMethodResponseResult updateMethodResponse(UpdateMethodResponseRequest request) {request = beforeClientExecution(request);return executeUpdateMethodResponse(request);}

// Translation:
public virtual UpdateMethodResponseResponse UpdateMethodResponse(UpdateMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMethodResponseResponseUnmarshaller.Instance;return Invoke<UpdateMethodResponseResponse>(request, options);}
// Original:
public boolean add(char[] text) {return map.put(text, PLACEHOLDER) == null;}

// Translation:
public virtual bool Add(string text){return map.Put(text);}
// Original:
public String toString(Vocabulary vocabulary) {if (s0 == null) {return "";}DFASerializer serializer = new DFASerializer(this, vocabulary);return serializer.toString();}

// Translation:
public String ToString(IVocabulary vocabulary){if (s0 == null){return "";}DFASerializer serializer = new DFASerializer(this, vocabulary);return serializer.ToString();}
// Original:
public CreateApiKeyResult createApiKey(CreateApiKeyRequest request) {request = beforeClientExecution(request);return executeCreateApiKey(request);}

// Translation:
public virtual CreateApiKeyResponse CreateApiKey(CreateApiKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateApiKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateApiKeyResponseUnmarshaller.Instance;return Invoke<CreateApiKeyResponse>(request, options);}
// Original:
public DetachTypedLinkResult detachTypedLink(DetachTypedLinkRequest request) {request = beforeClientExecution(request);return executeDetachTypedLink(request);}

// Translation:
public virtual DetachTypedLinkResponse DetachTypedLink(DetachTypedLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachTypedLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachTypedLinkResponseUnmarshaller.Instance;return Invoke<DetachTypedLinkResponse>(request, options);}
// Original:
public ExternSheetRecord[] getExternSheetRecords() {return externSheetRecords.toArray(new ExternSheetRecord[0]);}

// Translation:
public ExternSheetRecord[] GetExternSheetRecords(){return (ExternSheetRecord[])externSheetRecords.ToArray(typeof(ExternSheetRecord));}
// Original:
public DescribeNetworkInterfaceAttributeResult describeNetworkInterfaceAttribute(DescribeNetworkInterfaceAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeNetworkInterfaceAttribute(request);}

// Translation:
public virtual DescribeNetworkInterfaceAttributeResponse DescribeNetworkInterfaceAttribute(DescribeNetworkInterfaceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNetworkInterfaceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNetworkInterfaceAttributeResponseUnmarshaller.Instance;return Invoke<DescribeNetworkInterfaceAttributeResponse>(request, options);}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[TABID]\n");buffer.append("    .elements        = ").append(_tabids.length).append("\n");for (int i = 0; i < _tabids.length; i++) {buffer.append("    .element_").append(i).append(" = ").append(_tabids[i]).append("\n");}buffer.append("[/TABID]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[TABID]\n");buffer.Append("    .elements        = ").Append(_tabids.Length).Append("\n");for (int k = 0; k < _tabids.Length; k++){buffer.Append("    .element_" + k + "       = ").Append(_tabids[k]).Append("\n");}buffer.Append("[/TABID]\n");return buffer.ToString();}
// Original:
public long ramBytesUsed() {long ramBytesUsed = BASE_RAM_BYTES_USED;ramBytesUsed += (postingsReader!=null) ? postingsReader.ramBytesUsed() : 0;ramBytesUsed += (indexReader!=null) ? indexReader.ramBytesUsed() : 0;ramBytesUsed += fields.size() * 2L * RamUsageEstimator.NUM_BYTES_OBJECT_REF;for (FieldReader reader : fields.values()) {ramBytesUsed += reader.ramBytesUsed();}return ramBytesUsed;}

// Translation:
public override long RamBytesUsed(){long sizeInBytes = (postingsReader != null) ? postingsReader.RamBytesUsed() : 0;sizeInBytes += (indexReader != null) ? indexReader.RamBytesUsed() : 0;return sizeInBytes;}
// Original:
public ByteBuffer put(ByteBuffer buf) {throw new ReadOnlyBufferException();}

// Translation:
public override java.nio.ByteBuffer put(byte b){throw new java.nio.ReadOnlyBufferException();}
// Original:
public RecognizePetRequest() {super("visionai-poc", "2020-04-08", "RecognizePet");setMethod(MethodType.POST);}

// Translation:
public RecognizePetRequest(): base("visionai-poc", "2020-04-08", "RecognizePet"){Method = MethodType.POST;}
// Original:
public ImportRestApiResult importRestApi(ImportRestApiRequest request) {request = beforeClientExecution(request);return executeImportRestApi(request);}

// Translation:
public virtual ImportRestApiResponse ImportRestApi(ImportRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportRestApiResponseUnmarshaller.Instance;return Invoke<ImportRestApiResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_anchorId);out.writeShort(field_2_link1);out.writeShort(field_3_link2);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_anchorId);out1.WriteShort(field_2_link1);out1.WriteShort(field_3_link2);}
// Original:
public DescribeSnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute) {setSnapshotId(snapshotId);setAttribute(attribute.toString());}

// Translation:
public DescribeSnapshotAttributeRequest(string snapshotId, SnapshotAttributeName attribute){_snapshotId = snapshotId;_attribute = attribute;}
// Original:
public Token recoverInline(Parser recognizer)throws RecognitionException{Token matchedSymbol = singleTokenDeletion(recognizer);if ( matchedSymbol!=null ) {recognizer.consume();return matchedSymbol;}if ( singleTokenInsertion(recognizer) ) {return getMissingSymbol(recognizer);}InputMismatchException e;if (nextTokensContext == null) {e = new InputMismatchException(recognizer);} else {e = new InputMismatchException(recognizer, nextTokensState, nextTokensContext);}throw e;}

// Translation:
public virtual IToken RecoverInline(Parser recognizer){IToken matchedSymbol = SingleTokenDeletion(recognizer);if (matchedSymbol != null){recognizer.Consume();return matchedSymbol;}if (SingleTokenInsertion(recognizer)){return GetMissingSymbol(recognizer);}throw new InputMismatchException(recognizer);}
// Original:
public MultiCategoryListsFacetsExample() {config.setIndexFieldName("Author", "author");config.setIndexFieldName("Publish Date", "pubdate");config.setHierarchical("Publish Date", true);}

// Translation:
public MultiCategoryListsFacetsExample(){config.SetIndexFieldName("Author", "author");config.SetIndexFieldName("Publish Date", "pubdate");config.SetHierarchical("Publish Date", true);}
// Original:
public GetAddressBookResult getAddressBook(GetAddressBookRequest request) {request = beforeClientExecution(request);return executeGetAddressBook(request);}

// Translation:
public virtual GetAddressBookResponse GetAddressBook(GetAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAddressBookResponseUnmarshaller.Instance;return Invoke<GetAddressBookResponse>(request, options);}
// Original:
public PatternFormatting() {field_15_pattern_style = 0;field_16_pattern_color_indexes = 0;}

// Translation:
public PatternFormatting(){field_15_pattern_style = (short)0;field_16_pattern_color_indexes = (short)0;}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2) {try {Double number1 = evaluateValue(arg1, srcRowIndex, srcColumnIndex);if (number1 == null) {return ErrorEval.VALUE_INVALID;}Double number2 = evaluateValue(arg2, srcRowIndex, srcColumnIndex);if (number2 == null) {return ErrorEval.VALUE_INVALID;}return (number1.compareTo(number2) == 0) ? ONE : ZERO;} catch (EvaluationException e) {return e.getErrorEval();}}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg1, ValueEval arg2){ValueEval veText1;try{veText1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText1 = OperandResolver.CoerceValueToString(veText1);Double number1 = OperandResolver.ParseDouble(strText1);if (double.IsNaN(number1)){return ErrorEval.VALUE_INVALID;}ValueEval veText2;try{veText2 = OperandResolver.GetSingleValue(arg2, srcRowIndex, srcColumnIndex);}catch (EvaluationException e){return e.GetErrorEval();}String strText2 = OperandResolver.CoerceValueToString(veText2);Double number2 = OperandResolver.ParseDouble(strText2);if (double.IsNaN(number2)){return ErrorEval.VALUE_INVALID;}int result = NumberComparer.Compare(number1, number2);return result == 0 ? ONE : ZERO;}
// Original:
public final double getDouble() {return Double.longBitsToDouble(getLong());}

// Translation:
public sealed override double getDouble(){return Sharpen.Util.LongBitsToDouble(getLong());}
// Original:
public Principal(String provider, String id, boolean stripHyphen) {this.provider = provider;this.id = stripHyphen ?id.replace("-", "") : id;}

// Translation:
public Principal(string provider, string id, bool stripHyphen){this.provider = provider;if (stripHyphen){id = id.Replace("-", "");}this.id = id;}
// Original:
public ListJobsResult listJobs() {return listJobs(new ListJobsRequest());}

// Translation:
public virtual ListJobsResponse ListJobs(){return ListJobs(new ListJobsRequest());}
// Original:
public CharBuffer slice() {byteBuffer.limit(limit * SizeOf.CHAR);byteBuffer.position(position * SizeOf.CHAR);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());CharBuffer result = new CharToByteBufferAdapter(bb);byteBuffer.clear();return result;}

// Translation:
public override java.nio.CharBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.CHAR);byteBuffer.position(_position * libcore.io.SizeOf.CHAR);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.CharBuffer result = new java.nio.CharToByteBufferAdapter(bb);byteBuffer.clear();return result;}
// Original:
public static final int tagMessage(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 48; while (ptr < sz && b[ptr] != '\n')ptr = nextLF(b, ptr);if (ptr < sz && b[ptr] == '\n')return ptr + 1;return -1;}

// Translation:
public static int TagMessage(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 48;}while (ptr < sz && b[ptr] != '\n'){ptr = NextLF(b, ptr);}if (ptr < sz && b[ptr] == '\n'){return ptr + 1;}return -1;}
// Original:
public RebootBrokerResult rebootBroker(RebootBrokerRequest request) {request = beforeClientExecution(request);return executeRebootBroker(request);}

// Translation:
public virtual RebootBrokerResponse RebootBroker(RebootBrokerRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootBrokerRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootBrokerResponseUnmarshaller.Instance;return Invoke<RebootBrokerResponse>(request, options);}
// Original:
public int getLastInternalSheetIndexForExtIndex(int extRefIndex) {if (extRefIndex >= _externSheetRecord.getNumOfRefs() || extRefIndex < 0) {return -1;}return _externSheetRecord.getLastSheetIndexFromRefIndex(extRefIndex);}

// Translation:
public int GetLastInternalSheetIndexForExtIndex(int extRefIndex){if (extRefIndex >= _externSheetRecord.NumOfRefs || extRefIndex < 0){return -1;}return _externSheetRecord.GetLastSheetIndexFromRefIndex(extRefIndex);}
// Original:
public RemoveTagsFromOnPremisesInstancesResult removeTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeRemoveTagsFromOnPremisesInstances(request);}

// Translation:
public virtual RemoveTagsFromOnPremisesInstancesResponse RemoveTagsFromOnPremisesInstances(RemoveTagsFromOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveTagsFromOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveTagsFromOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke<RemoveTagsFromOnPremisesInstancesResponse>(request, options);}
// Original:
public static final int nextLF(byte[] b, int ptr) {return next(b, ptr, '\n');}

// Translation:
public static int NextLF(byte[] b, int ptr){return Next(b, ptr, '\n');}
// Original:
public boolean equals(Object other) {return sameClassAs(other) &&equalsTo(getClass().cast(other));}

// Translation:
public override bool Equals(object obj){if (!(obj is DrillDownQuery)){return false;}DrillDownQuery other = (DrillDownQuery)obj;return query.Equals(other.query) && base.Equals(other);}
// Original:
public void setResult(ReceiveCommand.Result status) {result = decode(status);super.setResult(status);}

// Translation:
public override void SetResult(ReceiveCommand.Result status){this._enclosing.result = this.Decode(status);base.SetResult(status);}
// Original:
public UpdateIAMPolicyAssignmentResult updateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeUpdateIAMPolicyAssignment(request);}

// Translation:
public virtual UpdateIAMPolicyAssignmentResponse UpdateIAMPolicyAssignment(UpdateIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIAMPolicyAssignmentResponseUnmarshaller.Instance;return Invoke<UpdateIAMPolicyAssignmentResponse>(request, options);}
// Original:
public ExportImageResult exportImage(ExportImageRequest request) {request = beforeClientExecution(request);return executeExportImage(request);}

// Translation:
public virtual ExportImageResponse ExportImage(ExportImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ExportImageRequestMarshaller.Instance;options.ResponseUnmarshaller = ExportImageResponseUnmarshaller.Instance;return Invoke<ExportImageResponse>(request, options);}
// Original:
public ListTopicsDetectionJobsResult listTopicsDetectionJobs(ListTopicsDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListTopicsDetectionJobs(request);}

// Translation:
public virtual ListTopicsDetectionJobsResponse ListTopicsDetectionJobs(ListTopicsDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTopicsDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTopicsDetectionJobsResponseUnmarshaller.Instance;return Invoke<ListTopicsDetectionJobsResponse>(request, options);}
// Original:
public static IntBuffer wrap(int[] array, int start, int intCount) {Arrays.checkOffsetAndCount(array.length, start, intCount);IntBuffer buf = new ReadWriteIntArrayBuffer(array);buf.position = start;buf.limit = start + intCount;return buf;}

// Translation:
public static java.nio.IntBuffer wrap(int[] array_1, int start, int intCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, intCount);java.nio.IntBuffer buf = new java.nio.ReadWriteIntArrayBuffer(array_1);buf._position = start;buf._limit = start + intCount;return buf;}
// Original:
public ListDeploymentTargetsResult listDeploymentTargets(ListDeploymentTargetsRequest request) {request = beforeClientExecution(request);return executeListDeploymentTargets(request);}

// Translation:
public virtual ListDeploymentTargetsResponse ListDeploymentTargets(ListDeploymentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentTargetsResponseUnmarshaller.Instance;return Invoke<ListDeploymentTargetsResponse>(request, options);}