final class Bytes extends AnyVal with Idx.Immutable[Byte]
- Alphabetic
- Bytes
- Idx.Immutable
- Idx
- ZZ.Array.Like.View
- Util.Able.Void
- scala.AnyVal
- scala.Any
- Hide All
- Show All
- Public
- All
Type
- type Bytes.TYPE = Idx.Immutable.Bytes
Method
-
def
all: ~[Byte]
Returns a Stream of all elements
-
def
apply(i: Int): Byte
Returns element at position
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
contains(v: Byte): Boolean
Inclusion check
Inclusion check
Returns true if specified value is contained within
- Definition Classes
- _Trait → View
-
def
copy(start: Int = 0, end: Opt.Int = \/): Bytes.TYPE
Copy range
Copy range
Copies elements within the range specified
val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable] ii.copy(3, 10).all // Stream: ~(D, E, F, G, H, I, J, K)
- Definition Classes
- Bytes → View
-
def
copyLast(number: Int): Bytes.TYPE
Copy end
Copy end
Copies specified number of elements at the end
val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable] ii.copyLast(5).all // Stream: ~(V, W, X, Y, Z)
- Definition Classes
- View
-
def
copyRemove(start: Int, end: Opt.Int = \/): Bytes
Copy without range
Copy without range
Copies elements outside the range specified
val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable] ii.copyRemove(3, 21).all // Stream: ~(A, B, C, V, W, X, Y, Z)
- Definition Classes
- Bytes → View
-
def
copyShort(cnt: Int): Bytes.TYPE
Copy without end
Copy without end
Copies from the beginning, missing specified number of elements at the end
val ii : Idx.Immutable[Char] = ('A' to 'Z').all.to[Idx.Immutable] ii.copyShort(20).all // Stream: ~(A, B, C, D, E, F)
- Definition Classes
- View
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isVoid: Boolean
Void check
Void check
Returns
true
if this instance is void- Definition Classes
- View → Void
-
def
make: (Array[Byte]) ⇒ Bytes
- Attributes
- protected
- Definition Classes
- Bytes → View
-
def
size: Int
Returns element count
-
def
toArray(implicit t: ClassTag[Byte]): Array[Byte]
Copy to Array
Copy to Array
Copies all elements to a new Array
- Definition Classes
- Bytes → View
-
final
def
toRaw[TRGT <: Idx.Immutable[Byte]](implicit c: RawConverter[Byte, TRGT]): TRGT
To raw immutable
To raw immutable
Converts this Idx.Immutable or Refs to raw immutable
Note. This method is inherited by raw immutables themselves (like Chars,Ints, etc.), where it does not make sense to use
Supported targets are:
- Booleans for Boolean elements
- Bytes for Byte elements
- Chars for Char elements
- Shorts for Short elements
- Ints for Int elements
- Longs for Long elements
- Floats for Float elements
- Doubles for Double elements
val r: Refs[Int] = Refs.*(1, 2, 3, 4) val ints: Ints = r.toRaw[Ints] // ------------------------------------ val ii: Idx.Immutable[Char] = ('a' to 'z').all.to[Idx.Immutable] val chars: Chars = ii.toRaw[Chars]
- Definition Classes
- _Trait
-
def
toString(): String
Description
Description
Provides description of size and array type
- Definition Classes
- View → Any
Operator
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(v: Byte): Bytes
Plus
Plus
Creates a new instance with value added
var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable] ii = ii + 'x' + 'y' + 'z' ii.all // Stream: ~(a, b, c, x, y, z)
- Definition Classes
- Bytes → View
-
def
+@(i: Int, v: Byte): Bytes
Plus at position
Plus at position
Creates a new instance with specified
value
inserted at specifiedposition
var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable] ii = ii +@ (0, 'X') +@ (0, 'Y') +@ (0, 'Z') ii.all // Stream: ~(Z, Y, X, a, b, c)
- Definition Classes
- Bytes → View
-
def
+~(v: ~[Byte]): Bytes
Plus all
Plus all
Creates a new instance with added stream of values
var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable] ii = ii +~ Seq('x', 'y', 'z').all ii.all // Stream: ~(a, b, c, x, y, z)
- Definition Classes
- Bytes → View
-
def
+~@(i: Int, v: ~[Byte]): Bytes
Plus stream at position
Plus stream at position
Creates a new instance with stream values added at specified
position
var ii: Idx.Immutable[Char] = Seq('a', 'b', 'c').all.to[Idx.Immutable] ii = ii +~@ (1, Seq('X', 'Y', 'Z')) ii.all // Stream: ~(a, X, Y, Z, b, c)
- Definition Classes
- Bytes → View
-
def
-(v: Byte): Bytes
Subtract value
Subtract value
Creates a new instance with all values equal to the specified removed
var ii: Idx.Immutable[Char] = Seq('a', 'b', 'b', 'c').all.to[Idx.Immutable] ii = ii - 'b' ii.all // Stream: ~(a, c)
- Definition Classes
- Bytes → View
-
def
-~(v: ~[Byte]): Bytes
Subtract all values
Subtract all values
Creates a new instance with all values equal to the specified removed
var ii: Idx.Immutable[Char] = ('a' to 'z').all.to[Idx.Immutable] ii = ii -~ ('d' to 'x') ii.all // Stream: ~(a, b, c, y, z)
- Definition Classes
- Bytes → View
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
Immutable Byte Array Wrap
There is alias for this type at Scalqa root, so it can be universally used as scalqa.Bytes