Преглед на файлове

add `@:dox(hide)` to overriden fields in BytesInput/Output

Simon Krajewski преди 10 години
родител
ревизия
b34a6284ee
променени са 2 файла, в които са добавени 17 реда и са изтрити 0 реда
  1. 8 0
      std/haxe/io/BytesInput.hx
  2. 9 0
      std/haxe/io/BytesOutput.hx

+ 8 - 0
std/haxe/io/BytesInput.hx

@@ -155,36 +155,44 @@ class BytesInput extends Input {
 	}
 
 	#if flash9
+	@:dox(hide)
 	override function set_bigEndian(e) {
 		bigEndian = e;
 		b.endian = e ? flash.utils.Endian.BIG_ENDIAN : flash.utils.Endian.LITTLE_ENDIAN;
 		return e;
 	}
 
+	@:dox(hide)
 	override function readFloat() {
 		return try b.readFloat() catch( e : Dynamic ) throw new Eof();
 	}
 
+	@:dox(hide)
 	override function readDouble() {
 		return try b.readDouble() catch( e : Dynamic ) throw new Eof();
 	}
 
+	@:dox(hide)
 	override function readInt8() {
 		return try b.readByte() catch( e : Dynamic ) throw new Eof();
 	}
 
+	@:dox(hide)
 	override function readInt16() {
 		return try b.readShort() catch( e : Dynamic ) throw new Eof();
 	}
 
+	@:dox(hide)
 	override function readUInt16() : Int {
 		return try b.readUnsignedShort() catch( e : Dynamic ) throw new Eof();
 	}
 
+	@:dox(hide)
 	override function readInt32() : Int {
 		return try b.readInt() catch( e : Dynamic ) throw new Eof();
 	}
 
+	@:dox(hide)
 	override function readString( len : Int ) {
 		return try b.readUTFBytes(len) catch( e : Dynamic ) throw new Eof();
 	}

+ 9 - 0
std/haxe/io/BytesOutput.hx

@@ -69,44 +69,53 @@ class BytesOutput extends Output {
 	#if flash9
 	// optimized operations
 
+	@:dox(hide)
 	override function set_bigEndian(e) {
 		bigEndian = e;
 		b.endian = e ? flash.utils.Endian.BIG_ENDIAN : flash.utils.Endian.LITTLE_ENDIAN;
 		return e;
 	}
 
+	@:dox(hide)
 	override function writeFloat( f : Float ) {
 		b.writeFloat(f);
 	}
 
+	@:dox(hide)
 	override function writeDouble( f : Float ) {
 		b.writeDouble(f);
 	}
 
+	@:dox(hide)
 	override function writeInt8( x : Int ) {
 		if( x < -0x80 || x >= 0x80 )
 			throw Error.Overflow;
 		b.writeByte(x);
 	}
 
+	@:dox(hide)
 	override function writeInt16( x : Int ) {
 		if( x < -0x8000 || x >= 0x8000 ) throw Error.Overflow;
 		b.writeShort(x);
 	}
 
+	@:dox(hide)
 	override function writeUInt16( x : Int ) {
 		if( x < 0 || x >= 0x10000 ) throw Error.Overflow;
 		b.writeShort(x);
 	}
 
+	@:dox(hide)
 	override function writeInt32( x : Int ) {
 		b.writeInt(x);
 	}
 
+	@:dox(hide)
 	override function prepare( size : Int ) {
 		if( size > 0 ) b[size-1] = b[size-1];
 	}
 
+	@:dox(hide)
 	override function writeString( s : String ) {
 		b.writeUTFBytes(s);
 	}