Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/main/java/org/jruby/ext/ffi/AbstractMemory.java
Original file line number Diff line number Diff line change
@@ -380,7 +380,7 @@ public IRubyObject get_uint8(ThreadContext context, IRubyObject offset) {
* @param value The value to write.
* @return The value written.
*/
@JRubyMethod(name = { "write_short" }, required = 1)
@JRubyMethod(name = { "write_short", "write_int16" }, required = 1)
public IRubyObject write_short(ThreadContext context, IRubyObject value) {
getMemoryIO().putShort(0, Util.int16Value(value));

@@ -393,7 +393,7 @@ public IRubyObject write_short(ThreadContext context, IRubyObject value) {
* @param value The value to write.
* @return The value written.
*/
@JRubyMethod(name = { "put_int16", "put_short", "write_int16" }, required = 1)
@JRubyMethod(name = { "put_int16", "put_short" }, required = 1)
public IRubyObject put_int16(ThreadContext context, IRubyObject value) {
getMemoryIO().putShort(0, Util.int16Value(value));

@@ -522,7 +522,7 @@ public IRubyObject get_uint16(ThreadContext context, IRubyObject offset) {
* @param value The value to write.
* @return The value written.
*/
@JRubyMethod(name = { "write_int" })
@JRubyMethod(name = { "write_int", "write_int32" })
public IRubyObject write_int(ThreadContext context, IRubyObject value) {
getMemoryIO().putInt(0, Util.int32Value(value));

@@ -535,7 +535,7 @@ public IRubyObject write_int(ThreadContext context, IRubyObject value) {
* @param value The value to write.
* @return The value written.
*/
@JRubyMethod(name = { "put_int32", "put_int", "write_int32" })
@JRubyMethod(name = { "put_int32", "put_int" })
public IRubyObject put_int32(ThreadContext context, IRubyObject value) {
getMemoryIO().putInt(0, Util.int32Value(value));

0 comments on commit 483bc56

Please sign in to comment.